From 173e32f834b2ea3e891d22133ff291a85b730e2c Mon Sep 17 00:00:00 2001 From: Shixian Sheng Date: Thu, 8 May 2025 12:59:57 -0400 Subject: [PATCH 1/2] Update common.js --- frontend/src/locales/zh/common.js | 52 +++++++++++++++---------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/frontend/src/locales/zh/common.js b/frontend/src/locales/zh/common.js index 07c6a459476..1b968b1021a 100644 --- a/frontend/src/locales/zh/common.js +++ b/frontend/src/locales/zh/common.js @@ -26,11 +26,11 @@ const TRANSLATIONS = { adminPassword: "管理员账户密码", adminPasswordReq: "密码必须至少包含 8 个字符。", teamHint: - "默认情况下,你将是唯一的管理员。完成入职后,你可以创建和邀请其他人成为用户或管理员。不要丢失你的密码,因为只有管理员可以重置密码。", + "默认情况下,你将是唯一的管理员。完成初始设置后,你可以创建和邀请其他人成为用户或管理员。不要丢失你的密码,因为只有管理员可以重置密码。", }, data: { title: "数据处理与隐私", - description: "我们致力于在涉及你的个人数据时提供透明和控制。", + description: "我们致力于在涉及你的个人数据时提供透明度和控制权。", settingsHint: "这些设置可以随时在设置中重新配置。", }, survey: { @@ -62,9 +62,9 @@ const TRANSLATIONS = { saving: "保存中...", previous: "上一页", next: "下一页", - optional: null, - yes: null, - no: null, + optional: "可选", + yes: "是", + no: "否", }, settings: { title: "设置", @@ -219,18 +219,18 @@ const TRANSLATIONS = { "任何超过 45 的值都可能导致连续聊天失败,具体取决于消息大小。", }, prompt: { - title: "聊天提示", + title: "系统提示词", description: - "将在此工作区上使用的提示。定义 AI 生成响应的上下文和指令。你应该提供精心设计的提示,以便人工智能可以生成相关且准确的响应。", + "将在此工作区上使用的提示词。定义 AI 生成响应的上下文和指令。你应该提供精心设计的提示,以便人工智能可以生成相关且准确的响应。", history: { - title: null, - clearAll: null, - noHistory: null, - restore: null, - delete: null, - deleteConfirm: null, - clearAllConfirm: null, - expand: null, + title: "系统提示词历史", + clearAll: "全部清除", + noHistory: "没有可用的系统提示词历史记录", + restore: "恢复", + delete: "删除", + deleteConfirm: "您确定要删除此历史记录吗?", + clearAllConfirm: "您确定要清除所有历史记录吗?此操作无法撤消。", + expand: "展开", }, }, refusal: { @@ -652,17 +652,17 @@ const TRANSLATIONS = { send: "将提示消息发送到工作区", }, profile_settings: { - edit_account: null, - profile_picture: null, - remove_profile_picture: null, - username: null, - username_description: null, - new_password: null, - passwort_description: null, - cancel: null, - update_account: null, - theme: null, - language: null, + edit_account: "编辑帐户", + profile_picture: "头像", + remove_profile_picture: "移除头像", + username: "用户名", + username_description: "用户名必须仅包含小写字母、数字、下划线和连字符,且不能包含空格", + new_password: "新密码", + passwort_description: "密码长度必须至少为 8 个字符", + cancel: "取消", + update_account: "更新帐号", + theme: "主题偏好", + language: "语言偏好", }, customization: { interface: { From a84cd7f3a32aef236d83fdfaa14e08bee2a0ddd7 Mon Sep 17 00:00:00 2001 From: timothycarambat Date: Thu, 8 May 2025 12:01:02 -0700 Subject: [PATCH 2/2] linting --- frontend/src/locales/zh/common.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/locales/zh/common.js b/frontend/src/locales/zh/common.js index 1b968b1021a..18db999d77c 100644 --- a/frontend/src/locales/zh/common.js +++ b/frontend/src/locales/zh/common.js @@ -656,7 +656,8 @@ const TRANSLATIONS = { profile_picture: "头像", remove_profile_picture: "移除头像", username: "用户名", - username_description: "用户名必须仅包含小写字母、数字、下划线和连字符,且不能包含空格", + username_description: + "用户名必须仅包含小写字母、数字、下划线和连字符,且不能包含空格", new_password: "新密码", passwort_description: "密码长度必须至少为 8 个字符", cancel: "取消",