Skip to content

Commit 6710c1e

Browse files
refactor: i18n
1 parent e02fa3b commit 6710c1e

File tree

2 files changed

+44
-13
lines changed

2 files changed

+44
-13
lines changed

frontend/src/i18n/en.json

Lines changed: 34 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"your_account_email_address": "Please enter your account/email address",
1414
"the_correct_password": "Please enter the correct password",
1515
"input_content": "Please Input Content",
16-
"empty": " ",
1716
"may_not_exist": "No results yet, the user may not exist",
17+
"empty": " ",
1818
"back": "Back",
1919
"confirm": "Confirm",
2020
"cancel": "Cancel",
@@ -25,6 +25,8 @@
2525
"next": "Next",
2626
"save": "Save",
2727
"logout": "Logout",
28+
"please_input": "Please enter {msg}",
29+
"switch_success": "Switch successfully",
2830
"result_count": "result",
2931
"clear_filter": "Clear conditions",
3032
"reset": "Reset",
@@ -35,7 +37,8 @@
3537
"re_upload": "Re-upload",
3638
"not_exceed_50mb": "Supports XLS, XLSX, CSV formats, file size does not exceed 50MB",
3739
"reset_password": "Reset password",
38-
"password_reset_successful": "Password reset successful"
40+
"password_reset_successful": "Password reset successful",
41+
"or": "Or"
3942
},
4043
"dashboard": {
4144
"add_dashboard_name_tips": "Please Input Dashboard Name",
@@ -70,6 +73,7 @@
7073
"name_asc": "Sort by Name (Ascending)",
7174
"name_desc": "Sort by Name (Descending)",
7275
"select_dashboard": "Please Select Dashboard",
76+
"name": "Name",
7377
"view": "View",
7478
"text": "Rich Text",
7579
"preview": "Preview",
@@ -275,13 +279,17 @@
275279
"advanced_settings": "Advanced settings",
276280
"model_parameters": "Model parameters",
277281
"add": "Add",
278-
"parameters": "Parameters",
282+
"parameters": "Parameter",
279283
"display_name": "Display name",
280284
"parameter_value": "Parameter value",
281285
"text": "Text",
282286
"number": "Number",
283287
"parameter_type": "Parameter type",
284-
"verification_successful": "Verification successful"
288+
"verification_successful": "Verification successful",
289+
"del_default_tip": "Unable to delete the model: {msg}",
290+
"del_default_warn": "This model is the system default model. Please set another model as the system default before deleting this model.",
291+
"del_warn_tip": "Would you like to remove the model: {msg}?",
292+
"check_failed": "Model is invalid [{msg}]"
285293
},
286294
"user": {
287295
"workspace": "Workspace",
@@ -300,9 +308,9 @@
300308
"add_users": "Add users",
301309
"selected_2_users": "Do you want to delete the selected {msg} users?",
302310
"filter_conditions": "Filter conditions",
303-
"enable": "Enable",
304-
"disable": "Disable",
305-
"local_creation": "Local creation",
311+
"enable": "Enabled",
312+
"disable": "Disabled",
313+
"local_creation": "Local",
306314
"feishu": "Feishu",
307315
"dingtalk": "DingTalk",
308316
"wechat_for_business": "WeChat for business",
@@ -332,15 +340,23 @@
332340
"change_password": "Change password",
333341
"new_password": "New password",
334342
"confirm_password": "Confirm password",
335-
"old_password": "Old password"
343+
"old_password": "Old password",
344+
"title": "User management",
345+
"upgrade_pwd": {
346+
"title": "Change password",
347+
"old_pwd": "Old password",
348+
"new_pwd": "New password",
349+
"confirm_pwd": "Confirm password",
350+
"two_pwd_not_match": "The two passwords do not match"
351+
}
336352
},
337353
"workspace": {
338354
"relevant_content_found": "No relevant content found",
339355
"add_workspace": "Add workspace",
340356
"administrator": "Administrator",
341-
"ordinary_member": "Ordinary member",
357+
"ordinary_member": "Member",
342358
"people": "People",
343-
"name_username_email": "Search name, username, email",
359+
"name_username_email": "Search name, account, email",
344360
"add_member": "Add member",
345361
"member_type": "Member type",
346362
"workspace_name": "Workspace name",
@@ -472,11 +488,18 @@
472488
"duplicate_name": "Duplicate name",
473489
"duplicate_name_": "Duplicate name",
474490
"duplicate_account": "Duplicate account",
475-
"repeating_parameters": "Repeating Parameters",
476491
"duplicate_email": "Duplicate email",
492+
"repeating_parameters": "Duplicate Parameter",
477493
"interface_credentials": "Interface credentials",
478494
"no_credentials_yet": "No credentials yet",
479495
"intelligent_customer_service": "SQLBot Intelligent Customer Service",
496+
"enter_a_question": "Please enter a question",
497+
"new_conversation": "New Conversation",
498+
"send": "Send",
499+
"stop_replying": "Stop replying",
500+
"i_am_sqlbot": "Hello, I am SQLBot",
501+
"predict_data_etc": "I can query data, generate charts, detect data anomalies, predict data, etc.",
502+
"intelligent_data_query": "Hurry up and start intelligent data query~",
480503
"origin_format_error": "Format invalid, starts with http or https and cannot end with /"
481504
},
482505
"chat": {

frontend/src/i18n/zh-CN.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@
395395
"238_people": "{msg} 人",
396396
"no_permission_rule": "暂无权限规则",
397397
"set_permission_rule": "设置权限规则",
398+
"basic_information": "基础信息",
398399
"rule_group_name": "规则组名称",
399400
"rule_name": "规则名称",
400401
"type": "类型",
@@ -433,7 +434,14 @@
433434
"filter_like": "包含",
434435
"filter_not_like": "不包含",
435436
"filter_in": "属于",
436-
"filter_not_in": "不属于"
437+
"filter_not_in": "不属于",
438+
"enter_a_question": "请输入问题",
439+
"new_conversation": "新会话",
440+
"send": "发送",
441+
"stop_replying": "停止回复",
442+
"i_am_sqlbot": "你好,我是SQLBot",
443+
"predict_data_etc": "我可以查询数据、生成图表、分析数据、预测数据等。",
444+
"intelligent_data_query": "赶快开启智能问数吧~"
437445
},
438446
"embedded": {
439447
"embedded_management": "嵌入式管理",
@@ -538,4 +546,4 @@
538546
"back_community": "还原至社区版",
539547
"confirm_tips": "确定还原至社区版?"
540548
}
541-
}
549+
}

0 commit comments

Comments
 (0)