diff options
author | liruifengv | 2024-03-20 17:06:19 +0800 |
---|---|---|
committer | GitHub | 2024-03-20 10:06:19 +0100 |
commit | bfdc9239bdd98acee62c358f7219ab5f093c6bba (patch) | |
tree | 3eb30d57029d78c36ce7f6ed59ca5682d0bb1d41 | |
parent | 3c51afb5557d13f75a12eb9f96f40f17d34af0ad (diff) | |
download | IT.starlight-bfdc9239bdd98acee62c358f7219ab5f093c6bba.tar.gz IT.starlight-bfdc9239bdd98acee62c358f7219ab5f093c6bba.tar.bz2 IT.starlight-bfdc9239bdd98acee62c358f7219ab5f093c6bba.zip |
i18n(zh-cn): Update i18n.mdx & plugins.mdx (#1634)
Co-authored-by: HiDeoo <494699+HiDeoo@users.noreply.github.com>
-rw-r--r-- | docs/src/content/docs/zh-cn/guides/i18n.mdx | 31 | ||||
-rw-r--r-- | 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" - } - ``` + <UIStringsList /> 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 文档。" /> + <LinkCard + href="https://github.com/HiDeoo/starlight-image-zoom" + title="starlight-image-zoom" + description="为你的文档图像添加缩放功能。" + /> </CardGrid> ## 社区工具和集成 |