From bfdc9239bdd98acee62c358f7219ab5f093c6bba Mon Sep 17 00:00:00 2001
From: liruifengv
Date: Wed, 20 Mar 2024 17:06:19 +0800
Subject: i18n(zh-cn): Update i18n.mdx & plugins.mdx (#1634)
Co-authored-by: HiDeoo <494699+HiDeoo@users.noreply.github.com>
---
docs/src/content/docs/zh-cn/guides/i18n.mdx | 31 ++---------------------
docs/src/content/docs/zh-cn/resources/plugins.mdx | 5 ++++
2 files changed, 7 insertions(+), 29 deletions(-)
diff --git a/docs/src/content/docs/zh-cn/guides/i18n.mdx b/docs/src/content/docs/zh-cn/guides/i18n.mdx
index a6f9585a..81330b5f 100644
--- a/docs/src/content/docs/zh-cn/guides/i18n.mdx
+++ b/docs/src/content/docs/zh-cn/guides/i18n.mdx
@@ -142,6 +142,7 @@ Starlight 期望你在所有语言中创建等效的页面。例如,如果你
## 翻译 Starlight 的 UI
import LanguagesList from '~/components/languages-list.astro';
+import UIStringsList from '~/components/ui-strings-list.astro';
除了托管翻译的内容文件之外,Starlight 还允许你翻译默认的 UI 字符串(例如,目录中的“本页”标题),以便你的读者可以完全使用所选的语言体验你的网站。
@@ -180,35 +181,7 @@ import LanguagesList from '~/components/languages-list.astro';
这些是 Starlight 附带的现有字符串的英文默认值:
- ```json
- {
- "skipLink.label": "Skip to content",
- "search.label": "Search",
- "search.shortcutLabel": "(Press / to Search)",
- "search.cancelLabel": "Cancel",
- "search.devWarning": "Search is only available in production builds. \nTry building and previewing the site to test it out locally.",
- "themeSelect.accessibleLabel": "Select theme",
- "themeSelect.dark": "Dark",
- "themeSelect.light": "Light",
- "themeSelect.auto": "Auto",
- "languageSelect.accessibleLabel": "Select language",
- "menuButton.accessibleLabel": "Menu",
- "sidebarNav.accessibleLabel": "Main",
- "tableOfContents.onThisPage": "On this page",
- "tableOfContents.overview": "Overview",
- "i18n.untranslatedContent": "This content is not available in your language yet.",
- "page.editLink": "Edit page",
- "page.lastUpdated": "Last updated:",
- "page.previousLink": "Previous",
- "page.nextLink": "Next",
- "404.text": "Page not found. Check the URL or try using the search bar.",
- "aside.note": "Note",
- "aside.tip": "Tip",
- "aside.caution": "Caution",
- "aside.danger": "Danger",
- "fileTree.directory": "Directory"
- }
- ```
+
Starlight 的代码块使用了 [Expressive Code](https://github.com/expressive-code/expressive-code)。
你可以在同一个 JSON 文件中使用 `expressiveCode` 键来设置它的 UI 字符串翻译。
diff --git a/docs/src/content/docs/zh-cn/resources/plugins.mdx b/docs/src/content/docs/zh-cn/resources/plugins.mdx
index 1290afec..f453308a 100644
--- a/docs/src/content/docs/zh-cn/resources/plugins.mdx
+++ b/docs/src/content/docs/zh-cn/resources/plugins.mdx
@@ -57,6 +57,11 @@ sidebar:
title="starlight-ghostcms"
description="添加你的 GhostCMS 博客文章到你的 Starlight 文档。"
/>
+
## 社区工具和集成
--
cgit