From fe65d548beab2490013b56539d01da4e24ebdff8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=86=E4=BC=AF=E8=A8=80?= Date: Sun, 19 Jul 2026 01:17:22 +0800 Subject: [PATCH 1/3] =?UTF-8?q?docs:=20=E4=BF=AE=E5=A4=8D=E8=8B=B1?= =?UTF-8?q?=E6=96=87=E8=AF=AD=E8=A8=80=E6=96=87=E4=BB=B6=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closed #8158 --- docs/src/en/guide/in-depth/locale.md | 8 +++----- docs/src/guide/in-depth/locale.md | 8 +++----- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/docs/src/en/guide/in-depth/locale.md b/docs/src/en/guide/in-depth/locale.md index 549bc83f..b46716d9 100644 --- a/docs/src/en/guide/in-depth/locale.md +++ b/docs/src/en/guide/in-depth/locale.md @@ -60,25 +60,23 @@ To add new translation texts, simply find `src/locales/langs/` in the correspond **src/locales/langs/zh-CN/\*.json** -````ts ```json { "about": { "desc": "Vben Admin 是一个现代的管理模版。" } } -```` +``` -**src/locales/langs/en-US.ts** +**src/locales/langs/en-US/\*.json** -````ts ```json { "about": { "desc": "Vben Admin is a modern management template." } } -```` +``` ## Using Translation Texts diff --git a/docs/src/guide/in-depth/locale.md b/docs/src/guide/in-depth/locale.md index e4a4a659..8c4b7ac0 100644 --- a/docs/src/guide/in-depth/locale.md +++ b/docs/src/guide/in-depth/locale.md @@ -60,25 +60,23 @@ updateLocale('en-US'); **src/locales/langs/zh-CN/\*.json** -````ts ```json { "about": { "desc": "Vben Admin 是一个现代的管理模版。" } } -```` +``` -**src/locales/langs/en-US.ts** +**src/locales/langs/en-US/\*.json** -````ts ```json { "about": { "desc": "Vben Admin is a modern management template." } } -```` +``` ## 使用翻译文本 From 41c20a43aff4d0b3c795c358241fd1a588e45996 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=86=E4=BC=AF=E8=A8=80?= Date: Sun, 19 Jul 2026 01:22:00 +0800 Subject: [PATCH 2/3] =?UTF-8?q?docs:=20=E6=9B=B4=E6=AD=A3=E8=AF=AD?= =?UTF-8?q?=E8=A8=80=E4=BD=BF=E7=94=A8=E7=A4=BA=E4=BE=8B,=E7=A1=AE?= =?UTF-8?q?=E4=BF=9D=E5=8F=AF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 使用可用的语言配置 修复computed变量使用语法错误 closed #8159 --- docs/src/en/guide/in-depth/locale.md | 6 +++--- docs/src/guide/in-depth/locale.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/src/en/guide/in-depth/locale.md b/docs/src/en/guide/in-depth/locale.md index b46716d9..ee46901a 100644 --- a/docs/src/en/guide/in-depth/locale.md +++ b/docs/src/en/guide/in-depth/locale.md @@ -89,11 +89,11 @@ With `@vben/locales`, you can easily use translation texts: import { computed } from 'vue'; import { $t } from '@vben/locales'; -const items = computed(() => [{ title: $t('about.desc') }]); +const items = computed(() => [{ title: $t('demos.title') }]);