diff --git a/front/components/Tiptap/Index.vue b/front/components/Tiptap/Index.vue index b99107c..8135cb3 100644 --- a/front/components/Tiptap/Index.vue +++ b/front/components/Tiptap/Index.vue @@ -5,6 +5,7 @@ import { Markdown } from 'tiptap-markdown' import Placeholder from '@tiptap/extension-placeholder' import { cx } from 'class-variance-authority' import countWords from '@/lib/countWords' +const { t } = useI18n() const props = defineProps<{ modelValue?: string @@ -64,6 +65,6 @@ onUnmounted(() => { v-if="modelValue?.length && modelValue?.length > 0" class="absolute bottom-2 right-3 flex justify-end px-2 py-1 text-xs text-gray-400 select-none bg-white rounded-md" > - {{ `${modelValue?.length ?? 0} 长度 · ${countWords(modelValue ?? '')} 字符` }} + {{ `${modelValue?.length ?? 0} ${t('common.length')} · ${countWords(modelValue ?? '')} ${t('common.words')}` }} diff --git a/front/i18n/locales/de.json b/front/i18n/locales/de.json index e4a2e79..b6b7017 100644 --- a/front/i18n/locales/de.json +++ b/front/i18n/locales/de.json @@ -38,7 +38,9 @@ }, "common": { "add": "Hinzufügen", - "copySuccess": "Erfolgreich kopiert" + "copySuccess": "Erfolgreich kopiert", + "length": "Länge", + "words": "Wörter" }, "page": { "upload": { diff --git a/front/i18n/locales/en.json b/front/i18n/locales/en.json index 4a01670..0c9ab69 100644 --- a/front/i18n/locales/en.json +++ b/front/i18n/locales/en.json @@ -38,7 +38,9 @@ }, "common": { "add": "Add", - "copySuccess": "Copy Success" + "copySuccess": "Copy Success", + "length": "length", + "words": "words" }, "page": { "upload": { diff --git a/front/i18n/locales/fr.json b/front/i18n/locales/fr.json index 0acac35..2f6eefa 100644 --- a/front/i18n/locales/fr.json +++ b/front/i18n/locales/fr.json @@ -38,7 +38,9 @@ }, "common": { "add": "Ajouter", - "copySuccess": "Copié avec succès" + "copySuccess": "Copié avec succès", + "length": "longueur", + "words": "mots" }, "page": { "upload": { diff --git a/front/i18n/locales/ja.json b/front/i18n/locales/ja.json index 3f35423..bd999f5 100644 --- a/front/i18n/locales/ja.json +++ b/front/i18n/locales/ja.json @@ -38,7 +38,9 @@ }, "common": { "add": "追加", - "copySuccess": "コピーしました" + "copySuccess": "コピーしました", + "length": "長さ", + "words": "文字" }, "page": { "upload": { diff --git a/front/i18n/locales/ko.json b/front/i18n/locales/ko.json index a051fd0..479adcc 100644 --- a/front/i18n/locales/ko.json +++ b/front/i18n/locales/ko.json @@ -38,7 +38,9 @@ }, "common": { "add": "추가", - "copySuccess": "복사되었습니다" + "copySuccess": "복사되었습니다", + "length": "길이", + "words": "단어" }, "page": { "upload": { diff --git a/front/i18n/locales/zh-CN.json b/front/i18n/locales/zh-CN.json index f248f85..d66af24 100644 --- a/front/i18n/locales/zh-CN.json +++ b/front/i18n/locales/zh-CN.json @@ -38,7 +38,9 @@ }, "common": { "add": "添加", - "copySuccess": "复制成功" + "copySuccess": "复制成功", + "length": "长度", + "words": "字符" }, "page": { "upload": { diff --git a/front/i18n/locales/zh-TW.json b/front/i18n/locales/zh-TW.json index 3559190..9326f83 100644 --- a/front/i18n/locales/zh-TW.json +++ b/front/i18n/locales/zh-TW.json @@ -38,7 +38,9 @@ }, "common": { "add": "新增", - "copySuccess": "複製成功" + "copySuccess": "複製成功", + "length": "長度", + "words": "字符" }, "page": { "upload": {