From 99f77e86379fb385599cf578a437129378bf4ab0 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Fri, 24 Jan 2025 11:42:00 +0800 Subject: [PATCH] fix: i18n --- ui/src/locales/lang/en-US/ai-chat.ts | 4 ++-- ui/src/locales/lang/en-US/common.ts | 2 +- ui/src/locales/lang/en-US/components.ts | 2 +- ui/src/locales/lang/en-US/views/application.ts | 6 +++--- ui/src/locales/lang/en-US/views/log.ts | 6 +++--- ui/src/locales/lang/en-US/views/template.ts | 2 +- ui/src/locales/lang/en-US/views/user.ts | 6 +++--- ui/src/router/modules/setting.ts | 2 +- ui/src/views/document/index.vue | 2 +- 9 files changed, 16 insertions(+), 16 deletions(-) diff --git a/ui/src/locales/lang/en-US/ai-chat.ts b/ui/src/locales/lang/en-US/ai-chat.ts index 3a261cad5..a09eb6922 100644 --- a/ui/src/locales/lang/en-US/ai-chat.ts +++ b/ui/src/locales/lang/en-US/ai-chat.ts @@ -2,7 +2,7 @@ export default { noHistory: 'No History', createChat: 'Create New Chat', history: 'History', - only20history: 'Only showing the last 20 conversations', + only20history: 'Only showing the last 20 chats', question_count: 'Questions', exportRecords: 'Export Chat Records', chatId: 'Chat ID', @@ -72,7 +72,7 @@ export default { searchContent: 'Search Content', searchResult: 'Search Results', conditionResult: 'Condition Result', - currentChat: 'Current Conversation', + currentChat: 'Current Chat', answer: 'AI Response', replyContent: 'Reply Content', textContent: 'Text Content', diff --git a/ui/src/locales/lang/en-US/common.ts b/ui/src/locales/lang/en-US/common.ts index 76b5ec777..b43599268 100644 --- a/ui/src/locales/lang/en-US/common.ts +++ b/ui/src/locales/lang/en-US/common.ts @@ -7,7 +7,7 @@ export default { save: 'Save', saveSuccess: 'Save successful', delete: 'Delete', - deleteSuccess: 'Successfully deleted', + deleteSuccess: 'Deleted successful', setting: 'Settings', settingSuccess: 'Setting successful', submit: 'Submit', diff --git a/ui/src/locales/lang/en-US/components.ts b/ui/src/locales/lang/en-US/components.ts index 0e1ea8208..ce54bd265 100644 --- a/ui/src/locales/lang/en-US/components.ts +++ b/ui/src/locales/lang/en-US/components.ts @@ -1,6 +1,6 @@ export default { quickCreatePlaceholder: 'Quickly create blank document', - quickCreateName: 'Document Name', + quickCreateName: 'document name', noData: 'No Data', loading: 'Loading', noMore: 'No more!' diff --git a/ui/src/locales/lang/en-US/views/application.ts b/ui/src/locales/lang/en-US/views/application.ts index a1004c719..d63659b5f 100644 --- a/ui/src/locales/lang/en-US/views/application.ts +++ b/ui/src/locales/lang/en-US/views/application.ts @@ -62,12 +62,12 @@ export default { references: ' (References Knowledge)', placeholder: 'Please enter prompt', requiredMessage: 'Please enter prompt', - tooltip:'By adjusting the content of the prompt, you can guide the direction of the large model conversation.', + tooltip:'By adjusting the content of the prompt, you can guide the direction of the large model chat.', noReferencesTooltip: - 'By adjusting the content of the prompt, you can guide the direction of the large model conversation. This prompt will be fixed at the beginning of the context. Variables used: {question} is the question posed by the user.', + 'By adjusting the content of the prompt, you can guide the direction of the large model chat. This prompt will be fixed at the beginning of the context. Variables used: {question} is the question posed by the user.', referencesTooltip: - 'By adjusting the content of the prompt, you can guide the direction of the large model conversation. This prompt will be fixed at the beginning of the context. Variables used: {data} carries known information from the knowledge; {question} is the question posed by the user.', + 'By adjusting the content of the prompt, you can guide the direction of the large model chat. This prompt will be fixed at the beginning of the context. Variables used: {data} carries known information from the knowledge; {question} is the question posed by the user.', defaultPrompt: `Known information: {data} Question: {question} Response requirements: diff --git a/ui/src/locales/lang/en-US/views/log.ts b/ui/src/locales/lang/en-US/views/log.ts index b74e744e7..b8d7794c5 100644 --- a/ui/src/locales/lang/en-US/views/log.ts +++ b/ui/src/locales/lang/en-US/views/log.ts @@ -1,5 +1,5 @@ export default { - title: 'Conversation Logs', + title: 'Chat Logs', delete: { confirmTitle: 'Confirm deletion of question:', confirmMessage1: 'Deleting this question will cancel the association of', @@ -12,14 +12,14 @@ export default { }, table: { abstract: 'Abstract', - chat_record_count: 'Number of Conversation Questions', + chat_record_count: 'Number of Chat Questions', feedback: { label: 'User Feedback', star: 'Agree', trample: 'Disagree' }, mark: 'Improvement Label', - recenTimes: 'Recent Conversation Time' + recenTimes: 'Recent Chat Time' }, addToDataset: 'Add to Knowledge', daysText: 'Days ago', diff --git a/ui/src/locales/lang/en-US/views/template.ts b/ui/src/locales/lang/en-US/views/template.ts index 669ec0e33..7d7a1f4f6 100644 --- a/ui/src/locales/lang/en-US/views/template.ts +++ b/ui/src/locales/lang/en-US/views/template.ts @@ -60,7 +60,7 @@ export default { label: 'Model Type', placeholder: 'Select a model type', tooltip1: - 'LLM: An inference model for AI conversations in the APP.', + 'LLM: An inference model for AI chats in the APP.', tooltip2: 'Embedding Model: A model for vectorizing document content in the knowledge.', tooltip3: 'Speech2Text: A model used for speech recognition in the APP.', diff --git a/ui/src/locales/lang/en-US/views/user.ts b/ui/src/locales/lang/en-US/views/user.ts index 2ee8f4281..ae41fd564 100644 --- a/ui/src/locales/lang/en-US/views/user.ts +++ b/ui/src/locales/lang/en-US/views/user.ts @@ -3,7 +3,7 @@ export default { createUser: 'Create User', editUser: 'Edit User', setting: { - updatePwd: 'Update User Password' + updatePwd: 'Change Password' }, tip: { professionalMessage: @@ -38,8 +38,8 @@ export default { requiredMessage: 'Please enter email' }, phone: { - label: 'Phone Number', - placeholder: 'Please enter phone number' + label: 'Phone', + placeholder: 'Please enter phone' }, password: { label: 'Login Password', diff --git a/ui/src/router/modules/setting.ts b/ui/src/router/modules/setting.ts index 7f03d8c5d..5e74cf695 100644 --- a/ui/src/router/modules/setting.ts +++ b/ui/src/router/modules/setting.ts @@ -60,7 +60,7 @@ const settingRouter = { meta: { icon: 'app-setting', iconActive: 'app-setting-active', - title: t('views.system.title'), + title: t('common.setting'), activeMenu: '/setting', parentPath: '/setting', parentName: 'setting', diff --git a/ui/src/views/document/index.vue b/ui/src/views/document/index.vue index 825e1e358..d8862de57 100644 --- a/ui/src/views/document/index.vue +++ b/ui/src/views/document/index.vue @@ -38,7 +38,7 @@