Browse Source

docs: 修复英文语言文件路径错误

closed #8158
pull/8163/head
陆伯言 1 month ago
parent
commit
fe65d548be
No known key found for this signature in database GPG Key ID: 8F8389C3DF656D8C
  1. 8
      docs/src/en/guide/in-depth/locale.md
  2. 8
      docs/src/guide/in-depth/locale.md

8
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** **src/locales/langs/zh-CN/\*.json**
````ts
```json ```json
{ {
"about": { "about": {
"desc": "Vben Admin 是一个现代的管理模版。" "desc": "Vben Admin 是一个现代的管理模版。"
} }
} }
```` ```
**src/locales/langs/en-US.ts** **src/locales/langs/en-US/\*.json**
````ts
```json ```json
{ {
"about": { "about": {
"desc": "Vben Admin is a modern management template." "desc": "Vben Admin is a modern management template."
} }
} }
```` ```
## Using Translation Texts ## Using Translation Texts

8
docs/src/guide/in-depth/locale.md

@ -60,25 +60,23 @@ updateLocale('en-US');
**src/locales/langs/zh-CN/\*.json** **src/locales/langs/zh-CN/\*.json**
````ts
```json ```json
{ {
"about": { "about": {
"desc": "Vben Admin 是一个现代的管理模版。" "desc": "Vben Admin 是一个现代的管理模版。"
} }
} }
```` ```
**src/locales/langs/en-US.ts** **src/locales/langs/en-US/\*.json**
````ts
```json ```json
{ {
"about": { "about": {
"desc": "Vben Admin is a modern management template." "desc": "Vben Admin is a modern management template."
} }
} }
```` ```
## 使用翻译文本 ## 使用翻译文本

Loading…
Cancel
Save