Skip to content

Commit

Permalink
Refactor locale files: remove unused bot and admin translations, add …
Browse files Browse the repository at this point in the history
…common and setting translations for API Token.
  • Loading branch information
swuecho committed Sep 7, 2024
1 parent a2ab134 commit b078b12
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 39 deletions.
29 changes: 9 additions & 20 deletions web/src/locales/en-US-more.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}


"common": {
"cancel": "Cancel"
},
"setting": {
"apiToken": "API Token",
"apiTokenCopied": "API Token copied",
"apiTokenCopyFailed": "Failed to copy API Token"
}
}
4 changes: 4 additions & 0 deletions web/src/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
28 changes: 9 additions & 19 deletions web/src/locales/zh-TW-more.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
{
"bot": {
"list": "機器人列表",
"all": {
"title": "機器人列表"
}
},
"chat": {
"chatSettings": "對話設定",
"uploadFiles": "上傳檔案",
"createBot": "建立機器人"
},
"admin": {
"chat_model": {
"enablePerModeRatelimit": "是否單獨流控",
"isEnable": "是否啟用"
}
}
}

"common": {
"cancel": "取消"
},
"setting": {
"apiToken": "API Token",
"apiTokenCopied": "API Token 已複製",
"apiTokenCopyFailed": "無法複製 API Token"
}
}
4 changes: 4 additions & 0 deletions web/src/locales/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
},
"common": {
"ask_user_register": "請註冊, 只有註冊帳號才能繼續對話",
"cancel": "取消",
"clear": "清空",
"confirm": "確認",
"delete": "刪除",
Expand Down Expand Up @@ -176,6 +177,9 @@
"setting": {
"admin": "管理",
"api": "API",
"apiToken": "API Token",
"apiTokenCopied": "API Token 已複製",
"apiTokenCopyFailed": "無法複製 API Token",
"avatarLink": "頭像鏈接",
"chatHistory": "聊天記錄",
"config": "配置",
Expand Down

0 comments on commit b078b12

Please sign in to comment.