Skip to content

Commit 4557a16

Browse files
committed
feat: chinese language
1 parent 4e17e37 commit 4557a16

File tree

5 files changed

+26
-2
lines changed

5 files changed

+26
-2
lines changed

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ Supported types:
113113
Supported Languages:
114114
* 🇬🇧 **English** - `en`
115115
* 🇷🇺 **Russian** - `ru`
116+
* 🇨🇳 **Chinese** - `zh`
116117

117118
If you haven't found your language, it can easily be added! Use the instructions in the section [contributing](https://mafl.hywax.space/community/contributing.html) on docs.
118119

Diff for: docs/reference/configuration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Set the desired language with:
2121
lang: ru
2222
```
2323

24-
Values: `en`, `ru`
24+
Values: `en`, `ru`, `zh`
2525

2626
Default: `en`
2727

Diff for: docs/ru/reference/configuration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ title: Моя домашняя страница
2121
lang: ru
2222
```
2323

24-
Поддерживаемые значения: `en`, `ru`
24+
Поддерживаемые значения: `en`, `ru`, `zh`
2525

2626
Значение по умолчанию: `en`
2727

Diff for: locales/zh-CN.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"service": {
3+
4+
},
5+
6+
"error": {
7+
"title": "谬误",
8+
"page404": "页面未找到!",
9+
"description": "哎呀!出现意外错误",
10+
"action": "转到文档"
11+
},
12+
13+
"update": {
14+
"message": "新版本问世",
15+
"visit": "访问 github →"
16+
}
17+
}

Diff for: nuxt.config.ts

+6
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ export default defineNuxtConfig({
7979
name: 'Русский',
8080
file: 'ru-RU.json',
8181
},
82+
{
83+
code: 'zh',
84+
iso: 'zh-CN',
85+
name: '中文',
86+
file: 'zh-CN.json',
87+
},
8288
],
8389
strategy: 'no_prefix',
8490
langDir: 'locales',

0 commit comments

Comments
 (0)