From b078b12259c8066b33b96ed2ab711ae2fa69300b Mon Sep 17 00:00:00 2001 From: Hao Wu Date: Sat, 7 Sep 2024 13:47:49 +0800 Subject: [PATCH] Refactor locale files: remove unused bot and admin translations, add common and setting translations for API Token. --- web/src/locales/en-US-more.json | 29 +++++++++-------------------- web/src/locales/en-US.json | 4 ++++ web/src/locales/zh-TW-more.json | 28 +++++++++------------------- web/src/locales/zh-TW.json | 4 ++++ 4 files changed, 26 insertions(+), 39 deletions(-) diff --git a/web/src/locales/en-US-more.json b/web/src/locales/en-US-more.json index 1b6045e5..f96dbf96 100644 --- a/web/src/locales/en-US-more.json +++ b/web/src/locales/en-US-more.json @@ -1,21 +1,10 @@ { - "bot": { - "list": "Robot List", - "all": { - "title": "Robot List" - } - }, - "chat": { - "chatSettings": "Chat Settings", - "uploadFiles": "Upload Files", - "createBot": "Create Bot" - }, - "admin": { - "chat_model": { - "enablePerModeRatelimit": "Enable Rate Limit Per Mode", - "isEnable": "Is Enabled" - } - } - } - - \ No newline at end of file + "common": { + "cancel": "Cancel" + }, + "setting": { + "apiToken": "API Token", + "apiTokenCopied": "API Token copied", + "apiTokenCopyFailed": "Failed to copy API Token" + } +} diff --git a/web/src/locales/en-US.json b/web/src/locales/en-US.json index 323e269c..d99e835b 100644 --- a/web/src/locales/en-US.json +++ b/web/src/locales/en-US.json @@ -121,6 +121,7 @@ }, "common": { "ask_user_register": "Please register, only registered accounts can continue the conversation", + "cancel": "Cancel", "clear": "Clear", "confirm": "Confirm", "delete": "Delete", @@ -176,6 +177,9 @@ "setting": { "admin": "Admin", "api": "API", + "apiToken": "API Token", + "apiTokenCopied": "API Token copied", + "apiTokenCopyFailed": "Failed to copy API Token", "avatarLink": "Avatar Link", "chatHistory": "Chat History", "config": "Configuration", diff --git a/web/src/locales/zh-TW-more.json b/web/src/locales/zh-TW-more.json index 418e7b0e..de40a20a 100644 --- a/web/src/locales/zh-TW-more.json +++ b/web/src/locales/zh-TW-more.json @@ -1,20 +1,10 @@ { - "bot": { - "list": "機器人列表", - "all": { - "title": "機器人列表" - } - }, - "chat": { - "chatSettings": "對話設定", - "uploadFiles": "上傳檔案", - "createBot": "建立機器人" - }, - "admin": { - "chat_model": { - "enablePerModeRatelimit": "是否單獨流控", - "isEnable": "是否啟用" - } - } - } - \ No newline at end of file + "common": { + "cancel": "取消" + }, + "setting": { + "apiToken": "API Token", + "apiTokenCopied": "API Token 已複製", + "apiTokenCopyFailed": "無法複製 API Token" + } +} \ No newline at end of file diff --git a/web/src/locales/zh-TW.json b/web/src/locales/zh-TW.json index cd389185..14c96080 100644 --- a/web/src/locales/zh-TW.json +++ b/web/src/locales/zh-TW.json @@ -121,6 +121,7 @@ }, "common": { "ask_user_register": "請註冊, 只有註冊帳號才能繼續對話", + "cancel": "取消", "clear": "清空", "confirm": "確認", "delete": "刪除", @@ -176,6 +177,9 @@ "setting": { "admin": "管理", "api": "API", + "apiToken": "API Token", + "apiTokenCopied": "API Token 已複製", + "apiTokenCopyFailed": "無法複製 API Token", "avatarLink": "頭像鏈接", "chatHistory": "聊天記錄", "config": "配置",