Skip to content

Commit 9612bc6

Browse files
authored
feat(locale): add zh-CN locale (#2)
1 parent 16a1da5 commit 9612bc6

File tree

2 files changed

+86
-0
lines changed

2 files changed

+86
-0
lines changed

ui/src/components/LangSelector.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ export default {
2929
text: "한국어",
3030
value: "ko",
3131
},
32+
{
33+
text: "简体中文",
34+
value: "zh-CN",
35+
},
3236
],
3337
};
3438
},

ui/src/locales/zh-CN.json

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
{
2+
"separator": ": ",
3+
"id": "ID",
4+
"update": "更新",
5+
"details": "详情",
6+
"actions": "Actions",
7+
"select-namespace": "选择 Namespace",
8+
"namespace": "Namespace",
9+
"namespaces": "Namespaces",
10+
"disconnect": "断开连接",
11+
"name": "名称",
12+
"value": "",
13+
"type": "类型",
14+
"status": "状态",
15+
"connected": "已连接",
16+
"disconnected": "未连接",
17+
"connection": {
18+
"title": "连接",
19+
"serverUrl": "服务器 URL",
20+
"username": "用户名",
21+
"password": "密码",
22+
"connect": "提交",
23+
"invalid-credentials": "无效的密钥",
24+
"error": "错误"
25+
},
26+
"dashboard": {
27+
"title": "状态面板"
28+
},
29+
"sockets": {
30+
"title": "Sockets",
31+
"details": "Socket 详情",
32+
"address": "IP 地址",
33+
"transport": "协议",
34+
"disconnect": "与该 Socket 实例断开连接",
35+
"displayDetails": "显示该 Socket 实例详情",
36+
"client": "客户端",
37+
"socket": "Socket",
38+
"creation-date": "创建时间",
39+
"leave": "离开房间",
40+
"join": "加入",
41+
"join-a-room": "加入房间",
42+
"initial-request": "初始 HTTP 请求",
43+
"headers": "Headers",
44+
"query-params": "查询参数"
45+
},
46+
"rooms": {
47+
"title": "房间",
48+
"details": "房间 详情",
49+
"active": "活跃",
50+
"deleted": "已删除",
51+
"public": "公开",
52+
"private": "私有",
53+
"show-private": "显示私人房间?",
54+
"sockets-count": "Sockets 数量",
55+
"clear": "从此房间移除所有 Socket 实例",
56+
"leave": "从该房间移除此 Socket 实例",
57+
"disconnect": "与此房间内所有 Socket 实例断开连接",
58+
"displayDetails": "显示此房间详情"
59+
},
60+
"clients": {
61+
"title": "客户端",
62+
"details": "客户端详情",
63+
"sockets-count": "Sockets 数量",
64+
"disconnect": "与该客户端断开连接",
65+
"displayDetails": "显示该客户端详情"
66+
},
67+
"servers": {
68+
"title": "服务器",
69+
"hostname": "Hostname",
70+
"pid": "PID",
71+
"uptime": "已经运行",
72+
"clients-count": "客户端数量",
73+
"last-ping": "上次 ping",
74+
"healthy": "健康",
75+
"unhealthy": "不健康"
76+
},
77+
"config": {
78+
"language": "语言",
79+
"readonly": "只读",
80+
"dark-theme": "夜间模式"
81+
}
82+
}

0 commit comments

Comments
 (0)