diff --git a/front/components/Drawer/FileShareDrawer.vue b/front/components/Drawer/FileShareDrawer.vue index e5cbb0f..5c319df 100644 --- a/front/components/Drawer/FileShareDrawer.vue +++ b/front/components/Drawer/FileShareDrawer.vue @@ -15,7 +15,7 @@ import { cx } from "class-variance-authority"; import { isObject } from "lodash-es"; import showDrawer from "@/lib/showDrawer"; import FileShareHandle from "@/components/Preprocessing/FileShareHandle.vue"; - +const { t } = useI18n(); const props = defineProps<{ hide: () => void; file: File; @@ -40,7 +40,7 @@ const isDocument = computed( ); const actions = [ { - label: "分享文件", + label: t("file.handleType.file-share"), icon: LucideShare, className: "bg-green-300", onClick: () => { @@ -50,7 +50,7 @@ const actions = [ }, }, isImage.value && { - label: "图片压缩", + label: t("file.handleType.file-image-compress"), icon: LucideImageMinus, className: "bg-red-300", onClick: () => { @@ -91,11 +91,11 @@ const actions = [ diff --git a/front/components/Home/Text/TextUploadInputTextView.vue b/front/components/Home/Text/TextUploadInputTextView.vue index 42ec824..7dc0f0a 100644 --- a/front/components/Home/Text/TextUploadInputTextView.vue +++ b/front/components/Home/Text/TextUploadInputTextView.vue @@ -1,46 +1,74 @@ \ No newline at end of file +
+ + {{ t("btn.submit") }} + + +
+ + diff --git a/front/i18n/locales/en.json b/front/i18n/locales/en.json index 42b78c9..cba4a12 100644 --- a/front/i18n/locales/en.json +++ b/front/i18n/locales/en.json @@ -9,6 +9,24 @@ "seo": { "desc": "015 is a temporary file sharing platform project, supporting temporary large file slicing upload, temporary text upload, download and share" }, + "btn": { + "submit": "Submit" + }, + "file": { + "uploadFile": "Upload File", + "uploadFilePlaceholder": "Drag and drop files or click to upload", + "handleType": { + "file-share": "File Share", + "file-image-compress": "Image Compress" + } + }, + "text": { + "uploadText": "Upload Text", + "uploadTextPlaceholder": "Share, translate, summarize, generate images, and ask large models with our text processor", + "handleType": { + "text-share": "Text Share" + } + }, "about": { "file": "File", "task": "Task", diff --git a/front/i18n/locales/zh-CN.json b/front/i18n/locales/zh-CN.json index 7905732..e11f019 100644 --- a/front/i18n/locales/zh-CN.json +++ b/front/i18n/locales/zh-CN.json @@ -9,6 +9,24 @@ "seo": { "desc": "015 是一个开源的临时文件分享平台项目,支持临时大文件切片上传,临时文本上传、下载、分享" }, + "btn": { + "submit": "提交" + }, + "file": { + "uploadFile": "上传文件", + "uploadFilePlaceholder": "拖拽文件 或 点击上传", + "handleType": { + "file-share": "文件分享", + "file-image-compress": "图片压缩" + } + }, + "text": { + "uploadText": "上传文本", + "uploadTextPlaceholder": "使用我们的文本处理器轻松分享,翻译,总结,生成图片,询问大模型", + "handleType": { + "text-share": "文本分享" + } + }, "about": { "file": "文件", "task": "任务",