Skip to content

Commit d39df72

Browse files
authored
Optimize for Simplified Chinese translation (#48)
* feat: Optimize for Simplified Chinese translation * fix: fix language pack index for zhcn
1 parent cfa5f38 commit d39df72

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

frontend/src/locales/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { createI18n } from 'vue-i18n'
22
import en from './en'
33
import fa from './fa'
4-
import ch from './ch'
4+
import zhcn from './zhcn'
55

66

77
export const i18n = createI18n({
@@ -11,12 +11,12 @@ export const i18n = createI18n({
1111
messages: {
1212
en,
1313
fa,
14-
ch
14+
zhcn
1515
},
1616
})
1717

1818
export const languages = [
1919
{ title: 'English', value: 'en' },
20-
{ title: '简体中文', value: 'ch' },
2120
{ title: 'فارسی', value: 'fa' },
21+
{ title: '简体中文', value: 'zhcn' },
2222
]

frontend/src/locales/ch.ts renamed to frontend/src/locales/zhcn.ts

+20-20
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ export default {
55
enable: "启用",
66
disable: "禁用",
77
loading: "加载中...",
8-
confirm: "是否确定 ?",
8+
confirm: "是否确定",
99
yes: "确认",
1010
no: "取消",
1111
unlimited: "无限",
12-
remained: "剩下的",
12+
remained: "剩余",
1313
type: "类型",
1414
submit: "提交",
1515
reset: "重置",
1616
now: "当前",
1717
network: "网络",
18-
copyToClipboard: "复制到剪切板",
19-
noData: "无数据!",
18+
copyToClipboard: "复制到剪贴板",
19+
noData: "无数据",
2020
invalidLogin: "登录无效!",
2121
online: "在线",
2222
pages: {
@@ -31,7 +31,7 @@ export default {
3131
settings: "设置",
3232
},
3333
main: {
34-
tiles: "信息卡片",
34+
tiles: "信息卡",
3535
gauges: "仪表板",
3636
charts: "图表",
3737
infos: "信息",
@@ -61,7 +61,7 @@ export default {
6161
inbound: "入站",
6262
client: "客户端",
6363
outbound: "出站",
64-
rule: "路由",
64+
rule: "规则",
6565
user: "用户",
6666
},
6767
actions: {
@@ -73,7 +73,7 @@ export default {
7373
update: "更新",
7474
submit: "提交",
7575
close: "关闭",
76-
restartApp: "重启S-UI",
76+
restartApp: "重启面板",
7777
},
7878
login: {
7979
title: "登录",
@@ -96,18 +96,18 @@ export default {
9696
sub: "订阅",
9797
addr: "地址",
9898
port: "端口",
99-
webPath: "基本URI",
99+
webPath: "基本 URI",
100100
domain: "域名",
101-
sslKey: "SSL 密钥(Key) 路径",
102-
sslCert: "SSL 证书cert路径",
101+
sslKey: "SSL 密钥 (Key) 路径",
102+
sslCert: "SSL 证书 (cert) 路径",
103103
webUri: "面板 URI",
104104
sessionAge: "会话最大连接数",
105105
timeLoc: "时区",
106106
subEncode: "启用编码",
107107
subInfo: "启用用户信息",
108108
path: "默认路径",
109109
update: "自动更新时间",
110-
subUri: "订阅URL",
110+
subUri: "订阅 URL",
111111
},
112112
client: {
113113
name: "名称",
@@ -126,22 +126,22 @@ export default {
126126
tls: "TLS",
127127
clients: "启用客户端",
128128
multiplex: "多路复用",
129-
transport: "运输",
129+
transport: "传输",
130130
},
131131
transport: {
132132
enable: "启用传输",
133-
host: "主持人",
134-
hosts: "主办方",
135-
path: "小路",
133+
host: "主机",
134+
hosts: "主机列表",
135+
path: "路径",
136136
},
137137
tls : {
138138
enable: "启用 TLS",
139-
usePath: "使用 Path",
140-
useText: "使用 Text",
139+
usePath: "使用外部路径",
140+
useText: "使用文件内容",
141141
certPath: "证书文件路径",
142-
keyPath: "密钥文件路径",
143-
cert: "证书",
144-
key: "钥匙",
142+
keyPath: "私钥文件路径",
143+
cert: "证书文件内容",
144+
key: "私钥文件内容",
145145
},
146146
stats: {
147147
upload: "上传",

0 commit comments

Comments
 (0)