From 6710c1edc56f96564bd4aa55ec19c3c784d06a63 Mon Sep 17 00:00:00 2001 From: xuwei-fit2cloud Date: Thu, 31 Jul 2025 14:54:24 +0800 Subject: [PATCH] refactor: i18n --- frontend/src/i18n/en.json | 45 +++++++++++++++++++++++++++--------- frontend/src/i18n/zh-CN.json | 12 ++++++++-- 2 files changed, 44 insertions(+), 13 deletions(-) diff --git a/frontend/src/i18n/en.json b/frontend/src/i18n/en.json index 22e37381..a54056e1 100644 --- a/frontend/src/i18n/en.json +++ b/frontend/src/i18n/en.json @@ -13,8 +13,8 @@ "your_account_email_address": "Please enter your account/email address", "the_correct_password": "Please enter the correct password", "input_content": "Please Input Content", - "empty": " ", "may_not_exist": "No results yet, the user may not exist", + "empty": " ", "back": "Back", "confirm": "Confirm", "cancel": "Cancel", @@ -25,6 +25,8 @@ "next": "Next", "save": "Save", "logout": "Logout", + "please_input": "Please enter {msg}", + "switch_success": "Switch successfully", "result_count": "result", "clear_filter": "Clear conditions", "reset": "Reset", @@ -35,7 +37,8 @@ "re_upload": "Re-upload", "not_exceed_50mb": "Supports XLS, XLSX, CSV formats, file size does not exceed 50MB", "reset_password": "Reset password", - "password_reset_successful": "Password reset successful" + "password_reset_successful": "Password reset successful", + "or": "Or" }, "dashboard": { "add_dashboard_name_tips": "Please Input Dashboard Name", @@ -70,6 +73,7 @@ "name_asc": "Sort by Name (Ascending)", "name_desc": "Sort by Name (Descending)", "select_dashboard": "Please Select Dashboard", + "name": "Name", "view": "View", "text": "Rich Text", "preview": "Preview", @@ -275,13 +279,17 @@ "advanced_settings": "Advanced settings", "model_parameters": "Model parameters", "add": "Add", - "parameters": "Parameters", + "parameters": "Parameter", "display_name": "Display name", "parameter_value": "Parameter value", "text": "Text", "number": "Number", "parameter_type": "Parameter type", - "verification_successful": "Verification successful" + "verification_successful": "Verification successful", + "del_default_tip": "Unable to delete the model: {msg}", + "del_default_warn": "This model is the system default model. Please set another model as the system default before deleting this model.", + "del_warn_tip": "Would you like to remove the model: {msg}?", + "check_failed": "Model is invalid [{msg}]" }, "user": { "workspace": "Workspace", @@ -300,9 +308,9 @@ "add_users": "Add users", "selected_2_users": "Do you want to delete the selected {msg} users?", "filter_conditions": "Filter conditions", - "enable": "Enable", - "disable": "Disable", - "local_creation": "Local creation", + "enable": "Enabled", + "disable": "Disabled", + "local_creation": "Local", "feishu": "Feishu", "dingtalk": "DingTalk", "wechat_for_business": "WeChat for business", @@ -332,15 +340,23 @@ "change_password": "Change password", "new_password": "New password", "confirm_password": "Confirm password", - "old_password": "Old password" + "old_password": "Old password", + "title": "User management", + "upgrade_pwd": { + "title": "Change password", + "old_pwd": "Old password", + "new_pwd": "New password", + "confirm_pwd": "Confirm password", + "two_pwd_not_match": "The two passwords do not match" + } }, "workspace": { "relevant_content_found": "No relevant content found", "add_workspace": "Add workspace", "administrator": "Administrator", - "ordinary_member": "Ordinary member", + "ordinary_member": "Member", "people": "People", - "name_username_email": "Search name, username, email", + "name_username_email": "Search name, account, email", "add_member": "Add member", "member_type": "Member type", "workspace_name": "Workspace name", @@ -472,11 +488,18 @@ "duplicate_name": "Duplicate name", "duplicate_name_": "Duplicate name", "duplicate_account": "Duplicate account", - "repeating_parameters": "Repeating Parameters", "duplicate_email": "Duplicate email", + "repeating_parameters": "Duplicate Parameter", "interface_credentials": "Interface credentials", "no_credentials_yet": "No credentials yet", "intelligent_customer_service": "SQLBot Intelligent Customer Service", + "enter_a_question": "Please enter a question", + "new_conversation": "New Conversation", + "send": "Send", + "stop_replying": "Stop replying", + "i_am_sqlbot": "Hello, I am SQLBot", + "predict_data_etc": "I can query data, generate charts, detect data anomalies, predict data, etc.", + "intelligent_data_query": "Hurry up and start intelligent data query~", "origin_format_error": "Format invalid, starts with http or https and cannot end with /" }, "chat": { diff --git a/frontend/src/i18n/zh-CN.json b/frontend/src/i18n/zh-CN.json index 660c65f8..3f219944 100644 --- a/frontend/src/i18n/zh-CN.json +++ b/frontend/src/i18n/zh-CN.json @@ -395,6 +395,7 @@ "238_people": "{msg} 人", "no_permission_rule": "暂无权限规则", "set_permission_rule": "设置权限规则", + "basic_information": "基础信息", "rule_group_name": "规则组名称", "rule_name": "规则名称", "type": "类型", @@ -433,7 +434,14 @@ "filter_like": "包含", "filter_not_like": "不包含", "filter_in": "属于", - "filter_not_in": "不属于" + "filter_not_in": "不属于", + "enter_a_question": "请输入问题", + "new_conversation": "新会话", + "send": "发送", + "stop_replying": "停止回复", + "i_am_sqlbot": "你好,我是SQLBot", + "predict_data_etc": "我可以查询数据、生成图表、分析数据、预测数据等。", + "intelligent_data_query": "赶快开启智能问数吧~" }, "embedded": { "embedded_management": "嵌入式管理", @@ -538,4 +546,4 @@ "back_community": "还原至社区版", "confirm_tips": "确定还原至社区版?" } -} +} \ No newline at end of file