Skip to content

Commit

Permalink
fix i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
swuecho committed Mar 21, 2023
1 parent 7767026 commit 31bde6f
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 52 deletions.
60 changes: 33 additions & 27 deletions web/src/locales/en-US.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
export default {
common: {
help: 'The first one is the theme(prompt), and the context includes 10 messages.',
edit: 'Edit',
delete: 'Delete',
save: 'Save',
reset: 'Reset',
Expand All @@ -8,48 +10,52 @@ export default {
clear: 'Clear',
yes: 'Yes',
no: 'No',
noData: 'No Data',
wrong: 'Something went wrong, please try again later.',
success: 'Success',
failed: 'Failed',
noData: 'No data available',
wrong: 'Something seems to have gone wrong. Please try again later.',
success: 'Operation succeeded',
failed: 'Operation failed',
verify: 'Verify',
unauthorizedTips: 'Unauthorized, please verify first.',
login: 'Login',
logout: 'Logout',
signup: 'Sign up',
email_placeholder: 'Please enter your email',
password_placeholder: 'Please enter your password',
unauthorizedTips: 'Please sign up or login',
},
chat: {
placeholder: 'Ask me anything...(Shift + Enter = line break)',
placeholderMobile: 'Ask me anything...',
placeholder: 'What would you like to say... (Shift + Enter = newline)',
placeholderMobile: 'What would you like to say...',
copy: 'Copy',
copied: 'Copied',
copyCode: 'Copy Code',
clearChat: 'Clear Chat',
clearChatConfirm: 'Are you sure to clear this chat?',
exportImage: 'Export Image',
exportImageConfirm: 'Are you sure to export this chat to png?',
exportSuccess: 'Export Success',
exportFailed: 'Export Failed',
copyCode: 'Copy code',
clearChat: 'Clear chat session',
clearChatConfirm: 'Do you want to clear the chat session?',
exportImage: 'Export chat session to image',
exportImageConfirm: 'Do you want to save the chat session as an image?',
exportSuccess: 'Saved successfully',
exportFailed: 'Saving failed',
usingContext: 'Context Mode',
turnOnContext: 'In the current mode, sending messages will carry previous chat records.',
turnOffContext: 'In the current mode, sending messages will not carry previous chat records.',
deleteMessage: 'Delete Message',
deleteMessageConfirm: 'Are you sure to delete this message?',
deleteChatSessionsConfirm: 'Are you sure to clear this history?',
clearHistoryConfirm: 'Are you sure to clear chat history?',
turnOnContext: 'In this mode, messages sent will include previous chat logs.',
turnOffContext: 'In this mode, messages sent will not include previous chat logs.',
deleteMessage: 'Delete message',
deleteMessageConfirm: 'Do you want to delete this message?',
deleteChatSessionsConfirm: 'Are you sure you want to delete this record?',
clearHistoryConfirm: 'Are you sure you want to clear the chat history?',
},
setting: {
setting: 'Setting',
general: 'General',
config: 'Config',
setting: 'Settings',
general: 'Overview',
config: 'Configuration',
avatarLink: 'Avatar Link',
name: 'Name',
description: 'Description',
resetUserInfo: 'Reset UserInfo',
chatHistory: 'ChatHistory',
resetUserInfo: 'Reset User Info',
chatHistory: 'Chat History',
theme: 'Theme',
language: 'Language',
api: 'API',
reverseProxy: 'Reverse Proxy',
timeout: 'Timeout',
socks: 'Socks',
},

}
}
2 changes: 1 addition & 1 deletion web/src/locales/zh-CN.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default {
common: {
help: '第一条是主题(prompt), 上下午包括10条信息',
help: '第一条是主题(prompt), 上下文包括10条信息',
edit: '编辑',
delete: '删除',
save: '保存',
Expand Down
56 changes: 32 additions & 24 deletions web/src/locales/zh-TW.ts
Original file line number Diff line number Diff line change
@@ -1,53 +1,61 @@
export default {
common: {
help: '第一個是主題(prompt),上下文包括10條信息',
edit: '編輯',
delete: '刪除',
save: '儲存',
reset: '重設',
save: '保存',
reset: '重置',
export: '匯出',
import: '匯入',
clear: '清除',
clear: '清空',
yes: '是',
no: '否',
noData: '暫無資料',
noData: '暫無數據',
wrong: '好像出錯了,請稍後再試。',
success: '操作成功',
failed: '操作失敗',
verify: '驗證',
unauthorizedTips: '未經授權,請先進行驗證。',
verify: '註冊',
login: '登錄',
logout: '登出',
signup: '註冊',
email_placeholder: '請輸入電子郵件',
password_placeholder: '請輸入密碼',
unauthorizedTips: '請註冊或登錄',
},
chat: {
placeholder: '來說點什麼...(Shift + Enter = 換行)',
placeholderMobile: '來說點什麼...',
placeholder: '說些什麼...(Shift + Enter = 換行)',
placeholderMobile: '說些什麼...',
copy: '複製',
copied: '複製成功',
copyCode: '複製代碼',
clearChat: '清除對話',
clearChat: '清空對話',
clearChatConfirm: '是否清空對話?',
exportImage: '儲存對話為圖片',
exportImageConfirm: '是否將對話儲存為圖片?',
exportSuccess: '儲存成功',
exportFailed: '儲存失敗',
exportImage: '導出對話到圖片',
exportImageConfirm: '是否將對話導出為圖片?',
exportSuccess: '導出成功',
exportFailed: '導出失敗',
usingContext: '上下文模式',
turnOnContext: '在當前模式下, 發送訊息會攜帶之前的聊天記錄。',
turnOffContext: '在當前模式下, 發送訊息不會攜帶之前的聊天記錄。',
deleteMessage: '刪除訊息',
deleteMessageConfirm: '是否刪除此訊息?',
deleteChatSessionsConfirm: '確定刪除此紀錄?',
turnOnContext: '在此模式下,發送的消息將包括以前的聊天記錄。',
turnOffContext: '在此模式下,發送的消息將不包括以前的聊天記錄。',
deleteMessage: '刪除消息',
deleteMessageConfirm: '是否刪除此消息?',
deleteChatSessionsConfirm: '確定刪除此記錄?',
clearHistoryConfirm: '確定清空聊天記錄?',
},
setting: {
setting: '設定',
setting: '設置',
general: '總覽',
config: '設定',
avatarLink: '頭貼連結',
config: '配置',
avatarLink: '頭像鏈接',
name: '名稱',
description: '描述',
resetUserInfo: '重設使用者資訊',
chatHistory: '紀錄',
resetUserInfo: '重置用戶信息',
chatHistory: '聊天記錄',
theme: '主題',
language: '語言',
api: 'API',
reverseProxy: '反向代理',
timeout: '逾時',
timeout: '超時',
socks: 'Socks',
},
}

0 comments on commit 31bde6f

Please sign in to comment.