From 0869e62b0a9077c41ae4b194e015c8e8d4870eb0 Mon Sep 17 00:00:00 2001 From: James Du <218786375+DU8866-nice@users.noreply.github.com> Date: Sun, 1 Nov 2026 11:16:37 +1100 Subject: [PATCH] chore(theme-translations): complete zh-Hans translations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Translate the zh-Hans theme messages that were still in English, mostly the DocSearch Ask AI strings, and fix the docs paginator ARIA label, which was translated as "文件选项卡" (file tabs) instead of a pagination label. --- .../locales/zh-Hans/theme-common.json | 10 ++-- .../locales/zh-Hans/theme-live-codeblock.json | 2 +- .../locales/zh-Hans/theme-search-algolia.json | 46 +++++++++---------- 3 files changed, 29 insertions(+), 29 deletions(-) diff --git a/packages/docusaurus-theme-translations/locales/zh-Hans/theme-common.json b/packages/docusaurus-theme-translations/locales/zh-Hans/theme-common.json index c7629cd82966..e0703762b20b 100644 --- a/packages/docusaurus-theme-translations/locales/zh-Hans/theme-common.json +++ b/packages/docusaurus-theme-translations/locales/zh-Hans/theme-common.json @@ -9,7 +9,7 @@ "theme.DocSidebarItem.expandCategoryAriaLabel": "展开侧边栏分类 '{label}'", "theme.ErrorPageContent.title": "页面已崩溃。", "theme.ErrorPageContent.tryAgain": "重试", - "theme.IconExternalLink.ariaLabel": "(opens in new tab)", + "theme.IconExternalLink.ariaLabel": "(在新标签页中打开)", "theme.NavBar.navAriaLabel": "主导航", "theme.NotFound.p1": "我们找不到您要找的页面。", "theme.NotFound.p2": "请联系原始链接来源网站的所有者,并告知他们链接已损坏。", @@ -41,7 +41,7 @@ "theme.colorToggle.ariaLabel": "切换浅色/暗黑模式(当前为{mode})", "theme.colorToggle.ariaLabel.mode.dark": "暗黑模式", "theme.colorToggle.ariaLabel.mode.light": "浅色模式", - "theme.colorToggle.ariaLabel.mode.system": "system mode", + "theme.colorToggle.ariaLabel.mode.system": "跟随系统", "theme.common.editThisPage": "编辑此页", "theme.common.headingLinkTitle": "{heading}的直接链接", "theme.common.skipToMainContent": "跳到主要内容", @@ -52,7 +52,7 @@ "theme.docs.DocCard.categoryDescription.plurals": "{count} 个项目", "theme.docs.breadcrumbs.home": "主页面", "theme.docs.breadcrumbs.navAriaLabel": "页面路径", - "theme.docs.paginator.navAriaLabel": "文件选项卡", + "theme.docs.paginator.navAriaLabel": "文档分页导航", "theme.docs.paginator.next": "下一页", "theme.docs.paginator.previous": "上一页", "theme.docs.sidebar.closeSidebarButtonAriaLabel": "关闭导航栏", @@ -72,8 +72,8 @@ "theme.lastUpdated.atDate": "于 {date} ", "theme.lastUpdated.byUser": "由 {user} ", "theme.lastUpdated.lastUpdatedAtBy": "最后{byUser}{atDate}更新", - "theme.navbar.mobileDropdown.collapseButton.collapseAriaLabel": "Collapse the dropdown", - "theme.navbar.mobileDropdown.collapseButton.expandAriaLabel": "Expand the dropdown", + "theme.navbar.mobileDropdown.collapseButton.collapseAriaLabel": "收起下拉菜单", + "theme.navbar.mobileDropdown.collapseButton.expandAriaLabel": "展开下拉菜单", "theme.navbar.mobileLanguageDropdown.label": "选择语言", "theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": "← 回到主菜单", "theme.navbar.mobileVersionsDropdown.label": "选择版本", diff --git a/packages/docusaurus-theme-translations/locales/zh-Hans/theme-live-codeblock.json b/packages/docusaurus-theme-translations/locales/zh-Hans/theme-live-codeblock.json index 5f3381f3a50c..701d780cd288 100644 --- a/packages/docusaurus-theme-translations/locales/zh-Hans/theme-live-codeblock.json +++ b/packages/docusaurus-theme-translations/locales/zh-Hans/theme-live-codeblock.json @@ -1,5 +1,5 @@ { - "theme.Playground.buttons.reset": "Reset", + "theme.Playground.buttons.reset": "重置", "theme.Playground.liveEditor": "实时编辑器", "theme.Playground.result": "结果" } diff --git a/packages/docusaurus-theme-translations/locales/zh-Hans/theme-search-algolia.json b/packages/docusaurus-theme-translations/locales/zh-Hans/theme-search-algolia.json index 7f6ac62a237e..672049ab0608 100644 --- a/packages/docusaurus-theme-translations/locales/zh-Hans/theme-search-algolia.json +++ b/packages/docusaurus-theme-translations/locales/zh-Hans/theme-search-algolia.json @@ -1,21 +1,21 @@ { "theme.SearchBar.label": "搜索", "theme.SearchBar.seeAll": "查看全部 {count} 个结果", - "theme.SearchModal.askAiScreen.afterToolCallText": "Searched for", - "theme.SearchModal.askAiScreen.copyButtonCopiedText": "Copied!", - "theme.SearchModal.askAiScreen.copyButtonText": "Copy", - "theme.SearchModal.askAiScreen.copyButtonTitle": "Copy", - "theme.SearchModal.askAiScreen.disclaimerText": "Answers are generated with AI which can make mistakes. Verify responses.", - "theme.SearchModal.askAiScreen.dislikeButtonTitle": "Dislike", - "theme.SearchModal.askAiScreen.duringToolCallText": "Searching for ", - "theme.SearchModal.askAiScreen.likeButtonTitle": "Like", - "theme.SearchModal.askAiScreen.preToolCallText": "Searching...", - "theme.SearchModal.askAiScreen.relatedSourcesText": "Related sources", - "theme.SearchModal.askAiScreen.thanksForFeedbackText": "Thanks for your feedback!", - "theme.SearchModal.askAiScreen.thinkingText": "Thinking...", + "theme.SearchModal.askAiScreen.afterToolCallText": "已搜索", + "theme.SearchModal.askAiScreen.copyButtonCopiedText": "已复制!", + "theme.SearchModal.askAiScreen.copyButtonText": "复制", + "theme.SearchModal.askAiScreen.copyButtonTitle": "复制", + "theme.SearchModal.askAiScreen.disclaimerText": "回答由 AI 生成,可能存在错误,请自行核实。", + "theme.SearchModal.askAiScreen.dislikeButtonTitle": "不喜欢", + "theme.SearchModal.askAiScreen.duringToolCallText": "正在搜索 ", + "theme.SearchModal.askAiScreen.likeButtonTitle": "喜欢", + "theme.SearchModal.askAiScreen.preToolCallText": "正在搜索...", + "theme.SearchModal.askAiScreen.relatedSourcesText": "相关来源", + "theme.SearchModal.askAiScreen.thanksForFeedbackText": "感谢你的反馈!", + "theme.SearchModal.askAiScreen.thinkingText": "思考中...", "theme.SearchModal.errorScreen.helpText": "你可能需要检查网络连接。", "theme.SearchModal.errorScreen.titleText": "无法获取结果", - "theme.SearchModal.footer.backToSearchText": "Back to search", + "theme.SearchModal.footer.backToSearchText": "返回搜索", "theme.SearchModal.footer.closeKeyAriaLabel": "Esc 键", "theme.SearchModal.footer.closeText": "关闭", "theme.SearchModal.footer.navigateDownKeyAriaLabel": "向下键", @@ -24,29 +24,29 @@ "theme.SearchModal.footer.searchByText": "搜索提供", "theme.SearchModal.footer.selectKeyAriaLabel": "Enter 键", "theme.SearchModal.footer.selectText": "选中", - "theme.SearchModal.footer.submitQuestionText": "Submit question", + "theme.SearchModal.footer.submitQuestionText": "提交问题", "theme.SearchModal.noResultsScreen.noResultsText": "没有结果:", "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": "请告知我们。", "theme.SearchModal.noResultsScreen.reportMissingResultsText": "认为这个查询应该有结果?", "theme.SearchModal.noResultsScreen.suggestedQueryText": "试试搜索", "theme.SearchModal.placeholder": "搜索文档", - "theme.SearchModal.resultsScreen.askAiPlaceholder": "Ask AI: ", - "theme.SearchModal.searchBox.backToKeywordSearchButtonAriaLabel": "Back to keyword search", - "theme.SearchModal.searchBox.backToKeywordSearchButtonText": "Back to keyword search", + "theme.SearchModal.resultsScreen.askAiPlaceholder": "询问 AI:", + "theme.SearchModal.searchBox.backToKeywordSearchButtonAriaLabel": "返回关键词搜索", + "theme.SearchModal.searchBox.backToKeywordSearchButtonText": "返回关键词搜索", "theme.SearchModal.searchBox.cancelButtonText": "取消", "theme.SearchModal.searchBox.enterKeyHint": "search", "theme.SearchModal.searchBox.enterKeyHintAskAi": "enter", - "theme.SearchModal.searchBox.placeholderText": "Search docs", - "theme.SearchModal.searchBox.placeholderTextAskAi": "Ask another question...", - "theme.SearchModal.searchBox.placeholderTextAskAiStreaming": "Answering...", + "theme.SearchModal.searchBox.placeholderText": "搜索文档", + "theme.SearchModal.searchBox.placeholderTextAskAi": "再问一个问题...", + "theme.SearchModal.searchBox.placeholderTextAskAiStreaming": "正在回答...", "theme.SearchModal.searchBox.resetButtonTitle": "清除查询", - "theme.SearchModal.searchBox.searchInputLabel": "Search", + "theme.SearchModal.searchBox.searchInputLabel": "搜索", "theme.SearchModal.startScreen.favoriteSearchesTitle": "收藏", "theme.SearchModal.startScreen.noRecentSearchesText": "没有最近搜索", - "theme.SearchModal.startScreen.recentConversationsTitle": "Recent conversations", + "theme.SearchModal.startScreen.recentConversationsTitle": "最近对话", "theme.SearchModal.startScreen.recentSearchesTitle": "最近搜索", "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": "从收藏列表中删除这个搜索", - "theme.SearchModal.startScreen.removeRecentConversationButtonTitle": "Remove this conversation from history", + "theme.SearchModal.startScreen.removeRecentConversationButtonTitle": "从历史记录中删除这个对话", "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": "从历史记录中删除这个搜索", "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": "保存这个搜索", "theme.SearchPage.algoliaLabel": "由 Algolia 提供",