From 476340ad9b22c23180b492c3ea91cb0d3bd99dc1 Mon Sep 17 00:00:00 2001 From: Chek <79972532+zz22558822@users.noreply.github.com> Date: Fri, 11 Jul 2025 10:49:26 +0800 Subject: [PATCH 1/2] docs(zh-tw, zh-cn): Complete missing Traditional and Simplified Chinese translations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit aims to complete all previously 'null' Traditional Chinese and Simplified Chinese translation keys in the project. **Traditional Chinese (zh-tw):** - Completed all 'null' descriptions in `/frontend/src/locales/zh_TW/common.js`. **Simplified Chinese (zh-cn):** - Completed all 'null' descriptions in `/frontend/src/locales/zh/common.js`. --- 此提交旨在補齊專案中所有原為 'null' 的繁體中文和簡體中文翻譯鍵值。 **繁體中文翻譯 (Traditional Chinese - zh-tw):** - 完善了 `/frontend/src/locales/zh_TW/common.js` 裡所有 'null' 的說明。 **簡體中文翻譯 (Simplified Chinese - zh-cn):** - 完善了 `/frontend/src/locales/zh/common.js` 裡所有 'null' 的說明。 --- frontend/src/locales/zh/common.js | 276 +++++++++++----------- frontend/src/locales/zh_TW/common.js | 340 +++++++++++++-------------- 2 files changed, 308 insertions(+), 308 deletions(-) diff --git a/frontend/src/locales/zh/common.js b/frontend/src/locales/zh/common.js index e189ed2701d..c303ab1fb85 100644 --- a/frontend/src/locales/zh/common.js +++ b/frontend/src/locales/zh/common.js @@ -65,7 +65,7 @@ const TRANSLATIONS = { optional: "可选", yes: "是", no: "否", - search: null, + search: "搜寻", }, settings: { title: "设置", @@ -219,7 +219,7 @@ const TRANSLATIONS = { docs: "文档", star: "在Github上加星标", }, - keyboardShortcuts: null, + keyboardShortcuts: "键盘快捷键", }, }, "new-workspace": { @@ -313,7 +313,7 @@ const TRANSLATIONS = { deleteConfirm: "您确定要删除此历史记录吗?", clearAllConfirm: "您确定要清除所有历史记录吗?此操作无法撤消。", expand: "展开", - publish: null, + publish: "发布到社区中心", }, }, refusal: { @@ -321,8 +321,8 @@ const TRANSLATIONS = { "desc-start": "当处于", query: "查询", "desc-end": "模式时,当未找到上下文时,你可能希望返回自定义拒绝响应。", - "tooltip-title": null, - "tooltip-description": null, + "tooltip-title": "我为什麽会看到这个?", + "tooltip-description": "您处于查询模式,此模式仅使用您文件中的资讯。切换到聊天模式以进行更灵活的对话,或点击此处访问我们的文件以了解更多关于聊天模式的资讯。", }, temperature: { title: "LLM 温度", @@ -528,13 +528,13 @@ const TRANSLATIONS = { provider: "LLM 提供商", providers: { azure_openai: { - azure_service_endpoint: null, - api_key: null, - chat_deployment_name: null, - chat_model_token_limit: null, - model_type: null, - default: null, - reasoning: null, + azure_service_endpoint: "Azure 服务端点", + api_key: "API 金钥", + chat_deployment_name: "聊天部署名称", + chat_model_token_limit: "聊天模型令牌限制", + model_type: "模型类型", + default: "预设", + reasoning: "推理", }, }, }, @@ -595,7 +595,7 @@ const TRANSLATIONS = { workspace: "工作区", chats: "已发送聊天", active: "活动域", - created: null, + created: "建立", }, }, "embed-chats": { @@ -849,45 +849,45 @@ const TRANSLATIONS = { microphone: "语音输入你的提示。", send: "将提示消息发送到工作区", attachments_processing: "附件正在处理,请稍候……", - tts_speak_message: null, - copy: null, - regenerate: null, - regenerate_response: null, - good_response: null, - more_actions: null, - hide_citations: null, - show_citations: null, - pause_tts_speech_message: null, - fork: null, - delete: null, - save_submit: null, - cancel: null, - edit_prompt: null, - edit_response: null, - at_agent: null, - default_agent_description: null, - custom_agents_coming_soon: null, - slash_reset: null, - preset_reset_description: null, - add_new_preset: null, - command: null, - your_command: null, - placeholder_prompt: null, - description: null, - placeholder_description: null, - save: null, - small: null, - normal: null, - large: null, + tts_speak_message: "TTS 朗读讯息", + copy: "複製", + regenerate: "重新", + regenerate_response: "重新回应", + good_response: "反应良好", + more_actions: "更多操作", + hide_citations: "隐藏引文", + show_citations: "显示引文", + pause_tts_speech_message: "暂停讯息拨放 TTS 语音 ", + fork: "分叉", + delete: "删除", + save_submit: "提交保存", + cancel: "取消", + edit_prompt: "编辑问题", + edit_response: "编辑回应", + at_agent: "代理", + default_agent_description: " - 此工作区的预设代理。", + custom_agents_coming_soon: "自订代理功能即将推出!", + slash_reset: "/reset", + preset_reset_description: "清除聊天纪录并开始新的聊天", + add_new_preset: "新增预设", + command: "指令", + your_command: "你的指令", + placeholder_prompt: "提示范例", + description: "描述", + placeholder_description: "描述范例", + save: "储存", + small: "小", + normal: "一般", + large: "大", workspace_llm_manager: { - search: null, - loading_workspace_settings: null, - available_models: null, - available_models_description: null, - save: null, - saving: null, - missing_credentials: null, - missing_credentials_description: null, + search: "搜寻", + loading_workspace_settings: "正在载入工作区设定", + available_models: "可用模型", + available_models_description: "可用模型说明", + save: "储存", + saving: "正在储存", + missing_credentials: "缺少凭证", + missing_credentials_description: "缺少凭证说明", }, }, profile_settings: { @@ -903,109 +903,109 @@ const TRANSLATIONS = { update_account: "更新帐号", theme: "主题偏好", language: "语言偏好", - failed_upload: null, - upload_success: null, - failed_remove: null, - profile_updated: null, - failed_update_user: null, - account: null, - support: null, - signout: null, + failed_upload: "上传个人资料图片失败:{{error}}", + upload_success: "个人资料图片已上传。", + failed_remove: "移除个人资料图片失败:{{error}}", + profile_updated: "个人资料已更新。", + failed_update_user: "更新使用者失败:{{error}}", + account: "帐户", + support: "支援", + signout: "登出", }, "keyboard-shortcuts": { - title: null, + title: "键盘快捷键", shortcuts: { - settings: null, - workspaceSettings: null, - home: null, - workspaces: null, - apiKeys: null, - llmPreferences: null, - chatSettings: null, - help: null, - showLLMSelector: null, + settings: "开启设定", + workspaceSettings: "开启目前工作区设定", + home: "前往首页", + workspaces: "管理工作区", + apiKeys: "API 金钥设定", + llmPreferences: "LLM 偏好设定", + chatSettings: "聊天设定", + help: "显示键盘快捷键说明", + showLLMSelector: "显示工作区 LLM 选择器", }, }, community_hub: { publish: { system_prompt: { - success_title: null, - success_description: null, - success_thank_you: null, - view_on_hub: null, - modal_title: null, - name_label: null, - name_description: null, - name_placeholder: null, - description_label: null, - description_description: null, - tags_label: null, - tags_description: null, - tags_placeholder: null, - visibility_label: null, - public_description: null, - private_description: null, - publish_button: null, - submitting: null, - submit: null, - prompt_label: null, - prompt_description: null, - prompt_placeholder: null, + success_title: "成功!", + success_description: "您的系统提示已发布到社区中心!", + success_thank_you: "感谢您分享到社群!", + view_on_hub: "在社区中心查看", + modal_title: "发布系统提示", + name_label: "名称", + name_description: "这是您系统提示的显示名称。", + name_placeholder: "我的系统提示", + description_label: "描述", + description_description: "这是您系统提示的描述。用它来描述您系统提示的目的。", + tags_label: "标籤", + tags_description: "标籤用于标记您的系统提示,以便于搜寻。您可以添加多个标籤。最多 5 个标籤。每个标籤最多 20 个字元。", + tags_placeholder: "输入并按 Enter 键添加标籤", + visibility_label: "可见性", + public_description: "公共系统提示对所有人可见。", + private_description: "私人系统提示仅对您可见。", + publish_button: "发布到社区中心", + submitting: "发布中...", + submit: "发布到社区中心", + prompt_label: "提示", + prompt_description: "这是将用于引导 LLM 的实际系统提示。", + prompt_placeholder: "在此输入您的系统提示...", }, agent_flow: { - public_description: null, - private_description: null, - success_title: null, - success_description: null, - success_thank_you: null, - view_on_hub: null, - modal_title: null, - name_label: null, - name_description: null, - name_placeholder: null, - description_label: null, - description_description: null, - tags_label: null, - tags_description: null, - tags_placeholder: null, - visibility_label: null, - publish_button: null, - submitting: null, - submit: null, - privacy_note: null, + public_description: "公共代理流程对所有人可见。", + private_description: "私人代理流程仅对您可见。", + success_title: "成功!", + success_description: "您的代理流程已发布到社区中心!", + success_thank_you: "感谢您分享到社群!", + view_on_hub: "在社区中心查看", + modal_title: "发布代理流程", + name_label: "名称", + name_description: "这是您代理流程的显示名称。", + name_placeholder: "我的代理流程", + description_label: "描述", + description_description: "这是您代理流程的描述。用它来描述您代理流程的目的。", + tags_label: "标籤", + tags_description: "标籤用于标记您的代理流程,以便于搜寻。您可以添加多个标籤。最多 5 个标籤。每个标籤最多 20 个字元。", + tags_placeholder: "输入并按 Enter 键添加标籤", + visibility_label: "可见性", + publish_button: "发布到社区中心", + submitting: "发布中...", + submit: "发布到社区中心", + privacy_note: "代理流程始终以上传为私有,以保护任何敏感资料。您可以在发布后在社区中心更改可见性。请在发布前验证您的流程不包含任何敏感或私人资讯。", }, generic: { unauthenticated: { - title: null, - description: null, - button: null, + title: "需要验证", + description: "在发布项目之前,您需要通过 AnythingLLM 社区中心进行验证。", + button: "连接到社区中心", }, }, slash_command: { - success_title: null, - success_description: null, - success_thank_you: null, - view_on_hub: null, - modal_title: null, - name_label: null, - name_description: null, - name_placeholder: null, - description_label: null, - description_description: null, - command_label: null, - command_description: null, - command_placeholder: null, - tags_label: null, - tags_description: null, - tags_placeholder: null, - visibility_label: null, - public_description: null, - private_description: null, - publish_button: null, - submitting: null, - prompt_label: null, - prompt_description: null, - prompt_placeholder: null, + success_title: "成功!", + success_description: "您的斜线指令已发佈到社区中心!", + success_thank_you: "感谢您分享到社群!", + view_on_hub: "在社区中心查看", + modal_title: "发佈斜线指令", + name_label: "名称", + name_description: "这是您斜线指令的显示名称。", + name_placeholder: "我的斜线指令", + description_label: "描述", + description_description: "这是您斜线指令的描述。用它来描述您斜线指令的目的。", + command_label: "指令", + command_description: "这是使用者将输入以触发此预设的斜线指令。", + command_placeholder: "我的命令", + tags_label: "标籤", + tags_description: "标籤用于标记您的斜线指令,以便于搜寻。您可以添加多个标籤。最多 5 个标籤。每个标籤最多 20 个字元。", + tags_placeholder: "输入并按 Enter 键添加标籤", + visibility_label: "可见性", + public_description: "公共斜线指令对所有人可见。", + private_description: "私人斜线指令仅对您可见。", + publish_button: "发佈到社区中心", + submitting: "发佈中...", + prompt_label: "提示", + prompt_description: "这是触发斜线指令时将使用的提示。", + prompt_placeholder: "在此输入您的提示...", }, }, }, diff --git a/frontend/src/locales/zh_TW/common.js b/frontend/src/locales/zh_TW/common.js index 345346259f7..9ec62ae580d 100644 --- a/frontend/src/locales/zh_TW/common.js +++ b/frontend/src/locales/zh_TW/common.js @@ -62,10 +62,10 @@ const TRANSLATIONS = { save: "儲存修改", previous: "上一頁", next: "下一頁", - optional: null, - yes: null, - no: null, - search: null, + optional: "可選", + yes: "是", + no: "否", + search: "搜尋", }, settings: { title: "系統設定", @@ -223,15 +223,15 @@ const TRANSLATIONS = { description: "將在此工作區中使用的提示詞。定義 AI 產生回應的上下文和指示。您應該提供精心設計的提示詞,以便 AI 可以產生相關且準確的回應。", history: { - title: null, - clearAll: null, - noHistory: null, - restore: null, - delete: null, - deleteConfirm: null, - clearAllConfirm: null, - expand: null, - publish: null, + title: "系統提示歷史記錄", + clearAll: "清除全部", + noHistory: "沒有可用的系統提示歷史記錄", + restore: "恢復", + delete: "刪除", + deleteConfirm: "您確定要刪除此歷史記錄項目嗎?", + clearAllConfirm: "您確定要刪除所有歷史記錄嗎?此操作無法復原。", + expand: "展開", + publish: "發布到社群中心", }, }, refusal: { @@ -239,8 +239,8 @@ const TRANSLATIONS = { "desc-start": "在", query: "查詢", "desc-end": "模式下,當找不到內容時,您可能需要傳回自訂的拒絕回應。", - "tooltip-title": null, - "tooltip-description": null, + "tooltip-title": "我為什麼會看到這個?", + "tooltip-description": "您處於查詢模式,此模式僅使用您文件中的資訊。切換到聊天模式以進行更靈活的對話,或點擊此處訪問我們的文件以了解更多關於聊天模式的資訊。", }, temperature: { title: "LLM 溫度值", @@ -360,13 +360,13 @@ const TRANSLATIONS = { provider: "LLM 提供者", providers: { azure_openai: { - azure_service_endpoint: null, - api_key: null, - chat_deployment_name: null, - chat_model_token_limit: null, - model_type: null, - default: null, - reasoning: null, + azure_service_endpoint: "Azure 服務端點", + api_key: "API 金鑰", + chat_deployment_name: "聊天部署名稱", + chat_model_token_limit: "聊天模型令牌限制", + model_type: "模型類型", + default: "預設", + reasoning: "推理", }, }, }, @@ -428,7 +428,7 @@ const TRANSLATIONS = { workspace: "工作區", chats: "已傳送對話", active: "已啟用網域", - created: null, + created: "建立", }, }, "embed-chats": { @@ -655,15 +655,15 @@ const TRANSLATIONS = { accept: "好的,明白了", }, obsidian: { - name: null, - description: null, - vault_location: null, - vault_description: null, - selected_files: null, - importing: null, - import_vault: null, - processing_time: null, - vault_warning: null, + name: "Obsidian", + description: "一鍵匯入 Obsidian 保險庫。", + vault_location: "保險庫位置", + vault_description: "選擇您的 Obsidian 保險庫資料夾以匯入所有筆記及其連接。", + selected_files: "找到 {{count}} 個 Markdown 檔案", + importing: "正在匯入保險庫...", + import_vault: "匯入保險庫", + processing_time: "這可能需要一段時間,具體取決於您的保險庫大小。", + vault_warning: "為避免任何衝突,請確保您的 Obsidian 保險庫目前未開啟。", }, }, chat_window: { @@ -680,68 +680,68 @@ const TRANSLATIONS = { text_size: "變更文字大小。", microphone: "語音輸入提示。", send: "將提示訊息發送到工作區", - attachments_processing: null, - tts_speak_message: null, - copy: null, - regenerate: null, - regenerate_response: null, - good_response: null, - more_actions: null, - hide_citations: null, - show_citations: null, - pause_tts_speech_message: null, - fork: null, - delete: null, - save_submit: null, - cancel: null, - edit_prompt: null, - edit_response: null, - at_agent: null, - default_agent_description: null, - custom_agents_coming_soon: null, - slash_reset: null, - preset_reset_description: null, - add_new_preset: null, - command: null, - your_command: null, - placeholder_prompt: null, - description: null, - placeholder_description: null, - save: null, - small: null, - normal: null, - large: null, + attachments_processing: "附件正在處理中,請稍後...", + tts_speak_message: "TTS 朗讀訊息", + copy: "複製", + regenerate: "重新", + regenerate_response: "重新回應", + good_response: "反應良好", + more_actions: "更多操作", + hide_citations: "隱藏引文", + show_citations: "顯示引文", + pause_tts_speech_message: "暫停訊息撥放 TTS 語音 ", + fork: "分叉", + delete: "刪除", + save_submit: "提交保存", + cancel: "取消", + edit_prompt: "編輯問題", + edit_response: "編輯回應", + at_agent: "代理", + default_agent_description: " - 此工作區的預設代理。", + custom_agents_coming_soon: "自訂代理功能即將推出!", + slash_reset: "/reset", + preset_reset_description: "清除聊天紀錄並開始新的聊天", + add_new_preset: "新增預設", + command: "指令", + your_command: "你的指令", + placeholder_prompt: "提示範例", + description: "描述", + placeholder_description: "描述範例", + save: "儲存", + small: "小", + normal: "一般", + large: "大", workspace_llm_manager: { - search: null, - loading_workspace_settings: null, - available_models: null, - available_models_description: null, - save: null, - saving: null, - missing_credentials: null, - missing_credentials_description: null, + search: "搜尋", + loading_workspace_settings: "正在載入工作區設定", + available_models: "可用模型", + available_models_description: "可用模型說明", + save: "儲存", + saving: "正在儲存", + missing_credentials: "缺少憑證", + missing_credentials_description: "缺少憑證說明", }, }, profile_settings: { - edit_account: null, - profile_picture: null, - remove_profile_picture: null, - username: null, - username_description: null, - new_password: null, - password_description: null, - cancel: null, - update_account: null, - theme: null, - language: null, - failed_upload: null, - upload_success: null, - failed_remove: null, - profile_updated: null, - failed_update_user: null, - account: null, - support: null, - signout: null, + edit_account: "編輯帳戶", + profile_picture: "個人資料圖片", + remove_profile_picture: "移除個人資料圖片", + username: "使用者名稱", + username_description: "使用者名稱必須只包含小寫字母、數字、底線和連字號,且沒有空格", + new_password: "新密碼", + password_description: "密碼長度必須至少為 8 個字元", + cancel: "取消", + update_account: "更新帳戶", + theme: "主題偏好", + language: "偏好語言", + failed_upload: "上傳個人資料圖片失敗:{{error}}", + upload_success: "個人資料圖片已上傳。", + failed_remove: "移除個人資料圖片失敗:{{error}}", + profile_updated: "個人資料已更新。", + failed_update_user: "更新使用者失敗:{{error}}", + account: "帳戶", + support: "支援", + signout: "登出", }, customization: { interface: { @@ -910,103 +910,103 @@ const TRANSLATIONS = { docs: "文檔", star: "在Github上加星標", }, - keyboardShortcuts: null, + keyboardShortcuts: "鍵盤快捷鍵", }, }, "keyboard-shortcuts": { - title: null, + title: "鍵盤快捷鍵", shortcuts: { - settings: null, - workspaceSettings: null, - home: null, - workspaces: null, - apiKeys: null, - llmPreferences: null, - chatSettings: null, - help: null, - showLLMSelector: null, + settings: "開啟設定", + workspaceSettings: "開啟目前工作區設定", + home: "前往首頁", + workspaces: "管理工作區", + apiKeys: "API 金鑰設定", + llmPreferences: "LLM 偏好設定", + chatSettings: "聊天設定", + help: "顯示鍵盤快捷鍵說明", + showLLMSelector: "顯示工作區 LLM 選擇器", }, }, community_hub: { publish: { system_prompt: { - success_title: null, - success_description: null, - success_thank_you: null, - view_on_hub: null, - modal_title: null, - name_label: null, - name_description: null, - name_placeholder: null, - description_label: null, - description_description: null, - tags_label: null, - tags_description: null, - tags_placeholder: null, - visibility_label: null, - public_description: null, - private_description: null, - publish_button: null, - submitting: null, - submit: null, - prompt_label: null, - prompt_description: null, - prompt_placeholder: null, + success_title: "成功!", + success_description: "您的系統提示已發布到社群中心!", + success_thank_you: "感謝您分享到社群!", + view_on_hub: "在社群中心查看", + modal_title: "發布系統提示", + name_label: "名稱", + name_description: "這是您系統提示的顯示名稱。", + name_placeholder: "我的系統提示", + description_label: "描述", + description_description: "這是您系統提示的描述。用它來描述您系統提示的目的。", + tags_label: "標籤", + tags_description: "標籤用於標記您的系統提示,以便於搜尋。您可以添加多個標籤。最多 5 個標籤。每個標籤最多 20 個字元。", + tags_placeholder: "輸入並按 Enter 鍵添加標籤", + visibility_label: "可見性", + public_description: "公共系統提示對所有人可見。", + private_description: "私人系統提示僅對您可見。", + publish_button: "發布到社群中心", + submitting: "發布中...", + submit: "發布到社群中心", + prompt_label: "提示", + prompt_description: "這是將用於引導 LLM 的實際系統提示。", + prompt_placeholder: "在此輸入您的系統提示...", }, agent_flow: { - public_description: null, - private_description: null, - success_title: null, - success_description: null, - success_thank_you: null, - view_on_hub: null, - modal_title: null, - name_label: null, - name_description: null, - name_placeholder: null, - description_label: null, - description_description: null, - tags_label: null, - tags_description: null, - tags_placeholder: null, - visibility_label: null, - publish_button: null, - submitting: null, - submit: null, - privacy_note: null, + public_description: "公共代理流程對所有人可見。", + private_description: "私人代理流程僅對您可見。", + success_title: "成功!", + success_description: "您的代理流程已發布到社群中心!", + success_thank_you: "感謝您分享到社群!", + view_on_hub: "在社群中心查看", + modal_title: "發布代理流程", + name_label: "名稱", + name_description: "這是您代理流程的顯示名稱。", + name_placeholder: "我的代理流程", + description_label: "描述", + description_description: "這是您代理流程的描述。用它來描述您代理流程的目的。", + tags_label: "標籤", + tags_description: "標籤用於標記您的代理流程,以便於搜尋。您可以添加多個標籤。最多 5 個標籤。每個標籤最多 20 個字元。", + tags_placeholder: "輸入並按 Enter 鍵添加標籤", + visibility_label: "可見性", + publish_button: "發布到社群中心", + submitting: "發布中...", + submit: "發布到社群中心", + privacy_note: "代理流程始終以上傳為私有,以保護任何敏感資料。您可以在發布後在社群中心更改可見性。請在發布前驗證您的流程不包含任何敏感或私人資訊。", }, generic: { unauthenticated: { - title: null, - description: null, - button: null, + title: "需要驗證", + description: "在發布項目之前,您需要通過 AnythingLLM 社群中心進行驗證。", + button: "連接到社群中心", }, }, slash_command: { - success_title: null, - success_description: null, - success_thank_you: null, - view_on_hub: null, - modal_title: null, - name_label: null, - name_description: null, - name_placeholder: null, - description_label: null, - description_description: null, - command_label: null, - command_description: null, - command_placeholder: null, - tags_label: null, - tags_description: null, - tags_placeholder: null, - visibility_label: null, - public_description: null, - private_description: null, - publish_button: null, - submitting: null, - prompt_label: null, - prompt_description: null, - prompt_placeholder: null, + success_title: "成功!", + success_description: "您的斜線指令已發佈到社群中心!", + success_thank_you: "感謝您分享到社群!", + view_on_hub: "在社群中心查看", + modal_title: "發佈斜線指令", + name_label: "名稱", + name_description: "這是您斜線指令的顯示名稱。", + name_placeholder: "我的斜線指令", + description_label: "描述", + description_description: "這是您斜線指令的描述。用它來描述您斜線指令的目的。", + command_label: "指令", + command_description: "這是使用者將輸入以觸發此預設的斜線指令。", + command_placeholder: "我的命令", + tags_label: "標籤", + tags_description: "標籤用於標記您的斜線指令,以便於搜尋。您可以添加多個標籤。最多 5 個標籤。每個標籤最多 20 個字元。", + tags_placeholder: "輸入並按 Enter 鍵添加標籤", + visibility_label: "可見性", + public_description: "公共斜線指令對所有人可見。", + private_description: "私人斜線指令僅對您可見。", + publish_button: "發佈到社群中心", + submitting: "發佈中...", + prompt_label: "提示", + prompt_description: "這是觸發斜線指令時將使用的提示。", + prompt_placeholder: "在此輸入您的提示...", }, }, }, From aee03f3cee92fd59eac4d58f43047e318d831d13 Mon Sep 17 00:00:00 2001 From: timothycarambat Date: Fri, 11 Jul 2025 09:27:33 -0700 Subject: [PATCH 2/2] linting --- frontend/src/locales/zh/common.js | 27 +++++++++++++++-------- frontend/src/locales/zh_TW/common.js | 33 ++++++++++++++++++---------- 2 files changed, 40 insertions(+), 20 deletions(-) diff --git a/frontend/src/locales/zh/common.js b/frontend/src/locales/zh/common.js index c303ab1fb85..15851438cce 100644 --- a/frontend/src/locales/zh/common.js +++ b/frontend/src/locales/zh/common.js @@ -322,7 +322,8 @@ const TRANSLATIONS = { query: "查询", "desc-end": "模式时,当未找到上下文时,你可能希望返回自定义拒绝响应。", "tooltip-title": "我为什麽会看到这个?", - "tooltip-description": "您处于查询模式,此模式仅使用您文件中的资讯。切换到聊天模式以进行更灵活的对话,或点击此处访问我们的文件以了解更多关于聊天模式的资讯。", + "tooltip-description": + "您处于查询模式,此模式仅使用您文件中的资讯。切换到聊天模式以进行更灵活的对话,或点击此处访问我们的文件以了解更多关于聊天模式的资讯。", }, temperature: { title: "LLM 温度", @@ -938,9 +939,11 @@ const TRANSLATIONS = { name_description: "这是您系统提示的显示名称。", name_placeholder: "我的系统提示", description_label: "描述", - description_description: "这是您系统提示的描述。用它来描述您系统提示的目的。", + description_description: + "这是您系统提示的描述。用它来描述您系统提示的目的。", tags_label: "标籤", - tags_description: "标籤用于标记您的系统提示,以便于搜寻。您可以添加多个标籤。最多 5 个标籤。每个标籤最多 20 个字元。", + tags_description: + "标籤用于标记您的系统提示,以便于搜寻。您可以添加多个标籤。最多 5 个标籤。每个标籤最多 20 个字元。", tags_placeholder: "输入并按 Enter 键添加标籤", visibility_label: "可见性", public_description: "公共系统提示对所有人可见。", @@ -964,20 +967,24 @@ const TRANSLATIONS = { name_description: "这是您代理流程的显示名称。", name_placeholder: "我的代理流程", description_label: "描述", - description_description: "这是您代理流程的描述。用它来描述您代理流程的目的。", + description_description: + "这是您代理流程的描述。用它来描述您代理流程的目的。", tags_label: "标籤", - tags_description: "标籤用于标记您的代理流程,以便于搜寻。您可以添加多个标籤。最多 5 个标籤。每个标籤最多 20 个字元。", + tags_description: + "标籤用于标记您的代理流程,以便于搜寻。您可以添加多个标籤。最多 5 个标籤。每个标籤最多 20 个字元。", tags_placeholder: "输入并按 Enter 键添加标籤", visibility_label: "可见性", publish_button: "发布到社区中心", submitting: "发布中...", submit: "发布到社区中心", - privacy_note: "代理流程始终以上传为私有,以保护任何敏感资料。您可以在发布后在社区中心更改可见性。请在发布前验证您的流程不包含任何敏感或私人资讯。", + privacy_note: + "代理流程始终以上传为私有,以保护任何敏感资料。您可以在发布后在社区中心更改可见性。请在发布前验证您的流程不包含任何敏感或私人资讯。", }, generic: { unauthenticated: { title: "需要验证", - description: "在发布项目之前,您需要通过 AnythingLLM 社区中心进行验证。", + description: + "在发布项目之前,您需要通过 AnythingLLM 社区中心进行验证。", button: "连接到社区中心", }, }, @@ -991,12 +998,14 @@ const TRANSLATIONS = { name_description: "这是您斜线指令的显示名称。", name_placeholder: "我的斜线指令", description_label: "描述", - description_description: "这是您斜线指令的描述。用它来描述您斜线指令的目的。", + description_description: + "这是您斜线指令的描述。用它来描述您斜线指令的目的。", command_label: "指令", command_description: "这是使用者将输入以触发此预设的斜线指令。", command_placeholder: "我的命令", tags_label: "标籤", - tags_description: "标籤用于标记您的斜线指令,以便于搜寻。您可以添加多个标籤。最多 5 个标籤。每个标籤最多 20 个字元。", + tags_description: + "标籤用于标记您的斜线指令,以便于搜寻。您可以添加多个标籤。最多 5 个标籤。每个标籤最多 20 个字元。", tags_placeholder: "输入并按 Enter 键添加标籤", visibility_label: "可见性", public_description: "公共斜线指令对所有人可见。", diff --git a/frontend/src/locales/zh_TW/common.js b/frontend/src/locales/zh_TW/common.js index 9ec62ae580d..a6267fe2c55 100644 --- a/frontend/src/locales/zh_TW/common.js +++ b/frontend/src/locales/zh_TW/common.js @@ -240,7 +240,8 @@ const TRANSLATIONS = { query: "查詢", "desc-end": "模式下,當找不到內容時,您可能需要傳回自訂的拒絕回應。", "tooltip-title": "我為什麼會看到這個?", - "tooltip-description": "您處於查詢模式,此模式僅使用您文件中的資訊。切換到聊天模式以進行更靈活的對話,或點擊此處訪問我們的文件以了解更多關於聊天模式的資訊。", + "tooltip-description": + "您處於查詢模式,此模式僅使用您文件中的資訊。切換到聊天模式以進行更靈活的對話,或點擊此處訪問我們的文件以了解更多關於聊天模式的資訊。", }, temperature: { title: "LLM 溫度值", @@ -658,7 +659,8 @@ const TRANSLATIONS = { name: "Obsidian", description: "一鍵匯入 Obsidian 保險庫。", vault_location: "保險庫位置", - vault_description: "選擇您的 Obsidian 保險庫資料夾以匯入所有筆記及其連接。", + vault_description: + "選擇您的 Obsidian 保險庫資料夾以匯入所有筆記及其連接。", selected_files: "找到 {{count}} 個 Markdown 檔案", importing: "正在匯入保險庫...", import_vault: "匯入保險庫", @@ -727,7 +729,8 @@ const TRANSLATIONS = { profile_picture: "個人資料圖片", remove_profile_picture: "移除個人資料圖片", username: "使用者名稱", - username_description: "使用者名稱必須只包含小寫字母、數字、底線和連字號,且沒有空格", + username_description: + "使用者名稱必須只包含小寫字母、數字、底線和連字號,且沒有空格", new_password: "新密碼", password_description: "密碼長度必須至少為 8 個字元", cancel: "取消", @@ -939,9 +942,11 @@ const TRANSLATIONS = { name_description: "這是您系統提示的顯示名稱。", name_placeholder: "我的系統提示", description_label: "描述", - description_description: "這是您系統提示的描述。用它來描述您系統提示的目的。", + description_description: + "這是您系統提示的描述。用它來描述您系統提示的目的。", tags_label: "標籤", - tags_description: "標籤用於標記您的系統提示,以便於搜尋。您可以添加多個標籤。最多 5 個標籤。每個標籤最多 20 個字元。", + tags_description: + "標籤用於標記您的系統提示,以便於搜尋。您可以添加多個標籤。最多 5 個標籤。每個標籤最多 20 個字元。", tags_placeholder: "輸入並按 Enter 鍵添加標籤", visibility_label: "可見性", public_description: "公共系統提示對所有人可見。", @@ -965,20 +970,24 @@ const TRANSLATIONS = { name_description: "這是您代理流程的顯示名稱。", name_placeholder: "我的代理流程", description_label: "描述", - description_description: "這是您代理流程的描述。用它來描述您代理流程的目的。", + description_description: + "這是您代理流程的描述。用它來描述您代理流程的目的。", tags_label: "標籤", - tags_description: "標籤用於標記您的代理流程,以便於搜尋。您可以添加多個標籤。最多 5 個標籤。每個標籤最多 20 個字元。", + tags_description: + "標籤用於標記您的代理流程,以便於搜尋。您可以添加多個標籤。最多 5 個標籤。每個標籤最多 20 個字元。", tags_placeholder: "輸入並按 Enter 鍵添加標籤", visibility_label: "可見性", publish_button: "發布到社群中心", submitting: "發布中...", submit: "發布到社群中心", - privacy_note: "代理流程始終以上傳為私有,以保護任何敏感資料。您可以在發布後在社群中心更改可見性。請在發布前驗證您的流程不包含任何敏感或私人資訊。", + privacy_note: + "代理流程始終以上傳為私有,以保護任何敏感資料。您可以在發布後在社群中心更改可見性。請在發布前驗證您的流程不包含任何敏感或私人資訊。", }, generic: { unauthenticated: { title: "需要驗證", - description: "在發布項目之前,您需要通過 AnythingLLM 社群中心進行驗證。", + description: + "在發布項目之前,您需要通過 AnythingLLM 社群中心進行驗證。", button: "連接到社群中心", }, }, @@ -992,12 +1001,14 @@ const TRANSLATIONS = { name_description: "這是您斜線指令的顯示名稱。", name_placeholder: "我的斜線指令", description_label: "描述", - description_description: "這是您斜線指令的描述。用它來描述您斜線指令的目的。", + description_description: + "這是您斜線指令的描述。用它來描述您斜線指令的目的。", command_label: "指令", command_description: "這是使用者將輸入以觸發此預設的斜線指令。", command_placeholder: "我的命令", tags_label: "標籤", - tags_description: "標籤用於標記您的斜線指令,以便於搜尋。您可以添加多個標籤。最多 5 個標籤。每個標籤最多 20 個字元。", + tags_description: + "標籤用於標記您的斜線指令,以便於搜尋。您可以添加多個標籤。最多 5 個標籤。每個標籤最多 20 個字元。", tags_placeholder: "輸入並按 Enter 鍵添加標籤", visibility_label: "可見性", public_description: "公共斜線指令對所有人可見。",