Skip to content

Commit

Permalink
Optimize for Simplified Chinese translation (#48)
Browse files Browse the repository at this point in the history
* feat: Optimize for Simplified Chinese translation

* fix: fix language pack index for zhcn
  • Loading branch information
Misaka-blog authored Mar 1, 2024
1 parent cfa5f38 commit d39df72
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
6 changes: 3 additions & 3 deletions frontend/src/locales/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createI18n } from 'vue-i18n'
import en from './en'
import fa from './fa'
import ch from './ch'
import zhcn from './zhcn'


export const i18n = createI18n({
Expand All @@ -11,12 +11,12 @@ export const i18n = createI18n({
messages: {
en,
fa,
ch
zhcn
},
})

export const languages = [
{ title: 'English', value: 'en' },
{ title: '简体中文', value: 'ch' },
{ title: 'فارسی', value: 'fa' },
{ title: '简体中文', value: 'zhcn' },
]
40 changes: 20 additions & 20 deletions frontend/src/locales/ch.ts → frontend/src/locales/zhcn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ export default {
enable: "启用",
disable: "禁用",
loading: "加载中...",
confirm: "是否确定 ?",
confirm: "是否确定",
yes: "确认",
no: "取消",
unlimited: "无限",
remained: "剩下的",
remained: "剩余",
type: "类型",
submit: "提交",
reset: "重置",
now: "当前",
network: "网络",
copyToClipboard: "复制到剪切板",
noData: "无数据!",
copyToClipboard: "复制到剪贴板",
noData: "无数据",
invalidLogin: "登录无效!",
online: "在线",
pages: {
Expand All @@ -31,7 +31,7 @@ export default {
settings: "设置",
},
main: {
tiles: "信息卡片",
tiles: "信息卡",
gauges: "仪表板",
charts: "图表",
infos: "信息",
Expand Down Expand Up @@ -61,7 +61,7 @@ export default {
inbound: "入站",
client: "客户端",
outbound: "出站",
rule: "路由",
rule: "规则",
user: "用户",
},
actions: {
Expand All @@ -73,7 +73,7 @@ export default {
update: "更新",
submit: "提交",
close: "关闭",
restartApp: "重启S-UI",
restartApp: "重启面板",
},
login: {
title: "登录",
Expand All @@ -96,18 +96,18 @@ export default {
sub: "订阅",
addr: "地址",
port: "端口",
webPath: "基本URI",
webPath: "基本 URI",
domain: "域名",
sslKey: "SSL 密钥(Key) 路径",
sslCert: "SSL 证书cert路径",
sslKey: "SSL 密钥 (Key) 路径",
sslCert: "SSL 证书 (cert) 路径",
webUri: "面板 URI",
sessionAge: "会话最大连接数",
timeLoc: "时区",
subEncode: "启用编码",
subInfo: "启用用户信息",
path: "默认路径",
update: "自动更新时间",
subUri: "订阅URL",
subUri: "订阅 URL",
},
client: {
name: "名称",
Expand All @@ -126,22 +126,22 @@ export default {
tls: "TLS",
clients: "启用客户端",
multiplex: "多路复用",
transport: "运输",
transport: "传输",
},
transport: {
enable: "启用传输",
host: "主持人",
hosts: "主办方",
path: "小路",
host: "主机",
hosts: "主机列表",
path: "路径",
},
tls : {
enable: "启用 TLS",
usePath: "使用 Path",
useText: "使用 Text",
usePath: "使用外部路径",
useText: "使用文件内容",
certPath: "证书文件路径",
keyPath: "密钥文件路径",
cert: "证书",
key: "钥匙",
keyPath: "私钥文件路径",
cert: "证书文件内容",
key: "私钥文件内容",
},
stats: {
upload: "上传",
Expand Down

0 comments on commit d39df72

Please sign in to comment.