Skip to content

Commit bda6484

Browse files
committed
Add Traditional Chinese translation
1 parent fcfd6a9 commit bda6484

76 files changed

Lines changed: 9812 additions & 2 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

dashboard/src/i18n/composables.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export function useI18n() {
103103
const locale = computed(() => currentLocale.value);
104104

105105
// 获取可用语言列表
106-
const availableLocales: Locale[] = ['zh-CN', 'en-US', 'ru-RU'];
106+
const availableLocales: Locale[] = ['zh-CN', 'zh-HK', 'zh-TW', 'en-US', 'ru-RU'];
107107

108108
// 检查是否已加载
109109
const isLoaded = computed(() => Object.keys(translations.value).length > 0);
@@ -158,6 +158,8 @@ export function useLanguageSwitcher() {
158158

159159
const languageOptions = computed(() => [
160160
{ value: 'zh-CN', label: '简体中文', flag: '🇨🇳' },
161+
{ value: 'zh-HK', label: '繁體中文(香港)', flag: '🇭🇰' },
162+
{ value: 'zh-TW', label: '繁體中文(台灣)', flag: '🇹🇼' },
161163
{ value: 'en-US', label: 'English', flag: '🇺🇸' },
162164
{ value: 'ru-RU', label: 'Русский', flag: '🇷🇺' }
163165
]);
@@ -221,7 +223,7 @@ function deepMerge(target: Record<string, any>, source: Record<string, any>) {
221223
export async function setupI18n() {
222224
// 从localStorage获取保存的语言设置
223225
const savedLocale = localStorage.getItem('astrbot-locale') as Locale;
224-
const initialLocale = savedLocale && ['zh-CN', 'en-US', 'ru-RU'].includes(savedLocale)
226+
const initialLocale = savedLocale && ['zh-CN', 'zh-HK', 'zh-TW', 'en-US', 'ru-RU'].includes(savedLocale)
225227
? savedLocale
226228
: 'zh-CN';
227229

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"create": "建立",
3+
"read": "讀取",
4+
"update": "Update",
5+
"delete": "Delete",
6+
"search": "Search",
7+
"filter": "Filter",
8+
"sort": "Sort",
9+
"export": "Export",
10+
"import": "Import",
11+
"backup": "Backup",
12+
"restore": "Restore",
13+
"copy": "Copy",
14+
"paste": "Paste",
15+
"cut": "Cut",
16+
"undo": "Undo",
17+
"redo": "Redo",
18+
"refresh": "Refresh",
19+
"submit": "Submit",
20+
"reset": "Reset",
21+
"clear": "Clear",
22+
"save": "Save",
23+
"close": "Close"
24+
}
Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
{
2+
"save": "Save",
3+
"cancel": "Cancel",
4+
"close": "Close",
5+
"copy": "Copy",
6+
"copied": "Copy 咗",
7+
"copyFailed": "Copy 失敗",
8+
"delete": "Delete",
9+
"edit": "Edit",
10+
"add": "Add",
11+
"confirm": "確認",
12+
"loading": "Load緊...",
13+
"success": "成功",
14+
"error": "Error",
15+
"warning": "Warning",
16+
"info": "Info",
17+
"name": "",
18+
"description": "Description",
19+
"author": "作者",
20+
"status": "狀態",
21+
"actions": "操作",
22+
"enable": "Enable",
23+
"disable": "Disable",
24+
"enabled": "Enable 咗",
25+
"disabled": "Disable 咗",
26+
"reload": "Reload",
27+
"configure": "Config",
28+
"install": "Install",
29+
"uninstall": "Uninstall",
30+
"update": "Update",
31+
"language": "語言",
32+
"settings": "Settings",
33+
"locale": "zh-HK",
34+
"type": "輸入",
35+
"press": "",
36+
"longPress": "長撳",
37+
"yes": "",
38+
"no": "唔係",
39+
"imagePreview": "圖片 Preview",
40+
"autoDetect": "Auto Detect",
41+
"dialog": {
42+
"confirmTitle": "確認操作",
43+
"confirmMessage": "你肯定要執行呢個操作?",
44+
"confirmButton": "確定",
45+
"cancelButton": "Cancel"
46+
},
47+
"restart": {
48+
"waiting": "等緊 AstrBot Restart...",
49+
"maxRetriesReached": "Pull 狀態已經去到極限,請人手 Check 吓。"
50+
},
51+
"readme": {
52+
"title": "Plugin 說明文件",
53+
"buttons": {
54+
"viewOnGithub": "喺 GitHub 睇 Repo",
55+
"refresh": "Refresh 文件"
56+
},
57+
"loading": "Load緊 README 文件...",
58+
"errors": {
59+
"fetchFailed": "攞 README 失敗",
60+
"fetchError": "攞 README 嗰陣發生 Error"
61+
},
62+
"empty": {
63+
"title": "呢個 Plugin 冇提供文件 Link 或者 GitHub Repo 網址。",
64+
"subtitle": "請去 Plugin 市場睇吓或者搵 Plugin 作者攞多啲資料。"
65+
}
66+
},
67+
"changelog": {
68+
"title": "更新日誌",
69+
"loading": "Load緊更新日誌...",
70+
"empty": {
71+
"title": "呢個 Plugin 冇提供更新日誌",
72+
"subtitle": "Developer 可以喺 Plugin 目錄加個 CHANGELOG.md 嚟提供更新日誌"
73+
}
74+
},
75+
"editor": {
76+
"fullscreen": "Full Screen 編輯",
77+
"editingTitle": "Edit內容"
78+
},
79+
"templateList": {
80+
"addEntry": "Add Item",
81+
"empty": "暫時冇 Item,請揀 Template 加落去",
82+
"missingTemplate": "搵唔到對應嘅 Template,請 Delete 完重新加過。",
83+
"unknownTemplate": "未指定 Template"
84+
},
85+
"list": {
86+
"addItemPlaceholder": "加新 Item,撳 Enter 確認",
87+
"addButton": "Add",
88+
"addMore": "加多啲",
89+
"batchImport": "Batch Import",
90+
"batchImportTitle": "Batch Import",
91+
"batchImportLabel": "每一行一個 Item",
92+
"batchImportPlaceholder": "例如:\nItem 1\nItem 2\nItem 3",
93+
"batchImportHint": "每一行會當做一個獨立嘅 Item,空行會自動 Skip",
94+
"batchImportButton": "Import {count} 項",
95+
"noItems": "暫時冇 Item",
96+
"noItemsHint": "暫時冇 Item,喺上面打字之後撳 Enter 加落去",
97+
"inputPlaceholder": "打完字撳 Enter 加落去",
98+
"editTitle": "改 List Item",
99+
"modifyButton": "修改"
100+
},
101+
"itemCard": {
102+
"enabled": "Enable 咗",
103+
"disabled": "Disable 咗",
104+
"delete": "Delete",
105+
"edit": "Edit",
106+
"copy": "Copy",
107+
"noData": "暫時冇 Data"
108+
},
109+
"objectEditor": {
110+
"dialogTitle": "改 Key-Value",
111+
"noItems": "暫時冇 Item",
112+
"noParams": "暫時冇 Parameter",
113+
"presets": "Preset",
114+
"newKeyLabel": "新 Key 名",
115+
"valueTypeLabel": "Value Type",
116+
"keyExists": "Key 名已經存在",
117+
"invalidJson": "JSON Format 錯咗",
118+
"placeholders": {
119+
"keyName": "Key 名",
120+
"stringValue": "String Value",
121+
"numberValue": "Number",
122+
"jsonValue": "JSON"
123+
}
124+
},
125+
"firstNotice": {
126+
"title": "首次提示",
127+
"loading": "Load緊首次提示...",
128+
"empty": {
129+
"title": "暫時冇首次提示內容",
130+
"subtitle": "搵唔到 FIRST_NOTICE.md 或者個 File 係空嘅。"
131+
}
132+
}
133+
}
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
{
2+
"logoTitle": "AstrBot 儀表板",
3+
"version": {
4+
"hasNewVersion": "AstrBot 有新版本!",
5+
"dashboardHasNewVersion": "WebUI 有新版本!"
6+
},
7+
"buttons": {
8+
"update": "Update",
9+
"account": "帳戶",
10+
"theme": {
11+
"light": "Light Mode",
12+
"dark": "Dark Mode"
13+
}
14+
},
15+
"updateDialog": {
16+
"title": "更新 AstrBot",
17+
"currentVersion": "目前版本",
18+
"status": {
19+
"checking": "Check緊 Update...",
20+
"switching": "切換緊版本...",
21+
"updating": "更新緊..."
22+
},
23+
"tabs": {
24+
"release": "😊 正式版"
25+
},
26+
"updateToLatest": "更新到最新版本",
27+
"preRelease": "Pre-release",
28+
"preReleaseWarning": {
29+
"title": "Pre-release 版本提醒",
30+
"description": "標有Pre-release嘅版本可能存在未知問題或 Bug,唔建議喺Production Environment使用。如發現問題,請提交至 ",
31+
"issueLink": "GitHub Issues"
32+
},
33+
"tip": "💡 TIP: ",
34+
"tipContinue": "預設喺切換版本時會下載對應版本嘅 WebUI 檔案。WebUI 嘅 Source Code 喺 Project 嘅 dashboard 目錄入面,你可以用 npm 自己 build。",
35+
"dockerTip": "切換版本時,會同時嘗試 Update 機械人主程式同管理面板。如果你用緊 Docker 部署,都可以重新 pull image 或者用",
36+
"dockerTipLink": "watchtower",
37+
"dockerTipContinue": "自動監控 Pull。",
38+
"table": {
39+
"tag": "Tag",
40+
"publishDate": "發佈時間",
41+
"content": "內容",
42+
"sourceUrl": "Source 網址",
43+
"actions": "操作",
44+
"view": "睇吓",
45+
"switch": "切換"
46+
},
47+
"releaseNotes": {
48+
"title": "Release Notes"
49+
},
50+
"redirectConfirm": {
51+
"title": "即將跳轉",
52+
"message": "會跳轉去 GitHub Releases 頁面,係咪繼續?",
53+
"latestLabel": "最新版本",
54+
"targetVersion": "目標版本:",
55+
"currentVersion": "目前版本:",
56+
"guideTitle": "跳轉後建議:",
57+
"guideStep1": "根據你嘅系統架構下載對應嘅 Installer。",
58+
"guideStep2": "裝完之後 Restart AstrBot。",
59+
"guideStep3": "如果你用緊 Docker,請優先用 Image 更新方式。"
60+
},
61+
"desktopApp": {
62+
"title": "更新 Desktop App",
63+
"message": "會 Check 同埋升級 AstrBot 桌面端程式。",
64+
"currentVersion": "目前版本:",
65+
"latestVersion": "最新版本:",
66+
"checking": "Check緊 Desktop App 更新...",
67+
"hasNewVersion": "發現新版本,可以撳確認升級。",
68+
"isLatest": "已經係最新版本",
69+
"installing": "下載同安裝緊更新,搞掂之後會自動 Restart App...",
70+
"checkFailed": "Check 更新失敗,請遲啲再試。",
71+
"installFailed": "升級失敗,請遲啲再試。"
72+
},
73+
"dashboardUpdate": {
74+
"title": "單獨更新管理面板到最新版本",
75+
"currentVersion": "目前版本",
76+
"hasNewVersion": "有新版本!",
77+
"isLatest": "已經係最新版本喇。",
78+
"downloadAndUpdate": "下載並更新"
79+
}
80+
},
81+
"accountDialog": {
82+
"title": "修改帳戶",
83+
"securityWarning": "安全提醒:請改咗 Default 密碼以確保帳戶安全",
84+
"form": {
85+
"currentPassword": "目前密碼",
86+
"newPassword": "新密碼",
87+
"confirmPassword": "確認新密碼",
88+
"newUsername": "新 Username (Optional)",
89+
"passwordHint": "密碼最少要 8 個位",
90+
"confirmPasswordHint": "請再打多次新密碼確認",
91+
"usernameHint": "留空代表唔改 Username",
92+
"defaultCredentials": "Default Username 同密碼都係 astrbot"
93+
},
94+
"validation": {
95+
"passwordRequired": "請輸入密碼",
96+
"passwordMinLength": "密碼最少要 8 個位",
97+
"passwordMatch": "兩次打嘅密碼唔對",
98+
"usernameMinLength": "Username 最少要 3 個位"
99+
},
100+
"actions": {
101+
"save": "Save Changes",
102+
"cancel": "Cancel"
103+
},
104+
"messages": {
105+
"updateFailed": "修改失敗,請再試吓"
106+
}
107+
}
108+
}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"welcome": "歡迎",
3+
"dashboard": "數據統計",
4+
"platforms": "機械人",
5+
"providers": "模型 Provider",
6+
"commands": "指令管理",
7+
"persona": "人格設定",
8+
"subagent": "SubAgent 編排",
9+
"toolUse": "MCP",
10+
"extension": "Plugin",
11+
"extensionTabs": {
12+
"installed": "AstrBot Plugin",
13+
"market": "Plugin 市場",
14+
"mcp": "MCP",
15+
"skills": "Skills",
16+
"components": "管理行為"
17+
},
18+
"config": "Config 檔案",
19+
"chat": "傾偈",
20+
"cron": "未來任務",
21+
"conversation": "對話數據",
22+
"sessionManagement": "自訂 Rules",
23+
"console": "平台 Log",
24+
"trace": "Trace",
25+
"alkaid": "Alkaid",
26+
"knowledgeBase": "Knowledge Base",
27+
"about": "關於",
28+
"settings": "Settings",
29+
"changelog": "更新日誌",
30+
"documentation": "官方 Document",
31+
"faq": "FAQ",
32+
"github": "GitHub",
33+
"drag": "Drag",
34+
"groups": {
35+
"more": "更多功能"
36+
},
37+
"changelogDialog": {
38+
"title": "更新日誌",
39+
"loading": "Load緊...",
40+
"error": "Load 失敗",
41+
"notFound": "搵唔到呢個版本嘅更新日誌",
42+
"selectVersion": "揀版本",
43+
"current": "目前"
44+
},
45+
"configTabs": {
46+
"normal": "普通 Config",
47+
"system": "系統 Config"
48+
}
49+
}

0 commit comments

Comments
 (0)