From 2189828254992cc9844679c2c1a2c50e290dac57 Mon Sep 17 00:00:00 2001 From: xuwei-fit2cloud Date: Fri, 13 Jun 2025 10:38:03 +0800 Subject: [PATCH] feat: i18n --- frontend/src/components/layout/index.vue | 2 +- frontend/src/i18n/en.json | 13 +++++++++++-- frontend/src/i18n/zh-CN.json | 3 ++- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/layout/index.vue b/frontend/src/components/layout/index.vue index 88960f45..f7b8a455 100644 --- a/frontend/src/components/layout/index.vue +++ b/frontend/src/components/layout/index.vue @@ -60,7 +60,7 @@ - Back + {{ t('common.back') }} diff --git a/frontend/src/i18n/en.json b/frontend/src/i18n/en.json index 712b8220..ff8452ec 100644 --- a/frontend/src/i18n/en.json +++ b/frontend/src/i18n/en.json @@ -9,9 +9,13 @@ "back": "Back", "confirm": "Confirm", "cancel": "Cancel", + "search": "Search", "system_manage": "System Management", + "update_success": "Update", + "save_success": "Save Successful", "next": "Next", - "save": "Save" + "save": "Save", + "logout": "Logout" }, "dashboard": { "length_1_64_characters": "Name field length must be 1-64 characters", @@ -23,7 +27,12 @@ "folder": "Folder", "dashboard": "Dashboard", "delete_warning": "Are you sure you want to delete?", - "delete_success": "Successfully deleted" + "delete_success": "Successfully deleted", + "delete_resource_warn": "Are you sure you want to delete {0}?", + "new_folder": "New Folder", + "new_dashboard": "New Dashboard", + "add_chart": "Add Chart", + "chart_selected": "Selected {0}" }, "qa": { "New Conversation": "New Conversation", diff --git a/frontend/src/i18n/zh-CN.json b/frontend/src/i18n/zh-CN.json index eca7d3e0..3f55310d 100644 --- a/frontend/src/i18n/zh-CN.json +++ b/frontend/src/i18n/zh-CN.json @@ -14,7 +14,8 @@ "update_success": "更新", "save_success": "保存成功", "next": "下一步", - "save": "保存" + "save": "保存", + "logout": "退出登录" }, "dashboard": { "length_1_64_characters": "名称字段长度1-64个字符",