diff --git a/.changeset/spicy-tigers-fix.md b/.changeset/spicy-tigers-fix.md new file mode 100644 index 00000000000..03f84868bdc --- /dev/null +++ b/.changeset/spicy-tigers-fix.md @@ -0,0 +1,5 @@ +--- +'@astrojs/starlight': patch +--- + +Adds Traditional Chinese UI translations diff --git a/packages/starlight/translations/index.ts b/packages/starlight/translations/index.ts index 66e83132558..abe740da7ff 100644 --- a/packages/starlight/translations/index.ts +++ b/packages/starlight/translations/index.ts @@ -24,6 +24,7 @@ import ru from './ru.json'; import vi from './vi.json'; import uk from './uk.json'; import hi from './hi.json'; +import zhTW from './zh-TW.json'; const { parse } = builtinI18nSchema(); @@ -54,5 +55,6 @@ export default Object.fromEntries( vi, uk, hi, + 'zh-TW': zhTW, }).map(([key, dict]) => [key, parse(dict)]) ); diff --git a/packages/starlight/translations/zh-TW.json b/packages/starlight/translations/zh-TW.json new file mode 100644 index 00000000000..a372ec733ec --- /dev/null +++ b/packages/starlight/translations/zh-TW.json @@ -0,0 +1,26 @@ +{ + "skipLink.label": "跳到內容", + "search.label": "搜尋", + "search.shortcutLabel": "(按 / 鍵開始搜尋)", + "search.cancelLabel": "取消", + "search.devWarning": "正式版本才能使用搜尋功能。\n如要在本地測試,請先建置並預覽網站。", + "themeSelect.accessibleLabel": "選擇佈景主題", + "themeSelect.dark": "深色", + "themeSelect.light": "淺色", + "themeSelect.auto": "自動", + "languageSelect.accessibleLabel": "選擇語言", + "menuButton.accessibleLabel": "選單", + "sidebarNav.accessibleLabel": "主要", + "tableOfContents.onThisPage": "本頁內容", + "tableOfContents.overview": "概述", + "i18n.untranslatedContent": "本頁內容尚未翻譯。", + "page.editLink": "編輯頁面", + "page.lastUpdated": "最後更新於:", + "page.previousLink": "前一則", + "page.nextLink": "下一則", + "404.text": "找不到頁面。請檢查網址或改用搜尋功能。", + "aside.note": "注意", + "aside.tip": "提示", + "aside.caution": "警告", + "aside.danger": "危險" +}