Skip to content

Commit

Permalink
i18n(zh-tw): add Traditional Chinese UI translations (#1504)
Browse files Browse the repository at this point in the history
Co-authored-by: liruifengv <25167721+liruifengv@users.noreply.github.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
  • Loading branch information
3 people committed Feb 20, 2024
1 parent 163bc84 commit fc83a05
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/spicy-tigers-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/starlight': patch
---

Adds Traditional Chinese UI translations
2 changes: 2 additions & 0 deletions packages/starlight/translations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -54,5 +55,6 @@ export default Object.fromEntries(
vi,
uk,
hi,
'zh-TW': zhTW,
}).map(([key, dict]) => [key, parse(dict)])
);
26 changes: 26 additions & 0 deletions packages/starlight/translations/zh-TW.json
Original file line number Diff line number Diff line change
@@ -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": "危險"
}

0 comments on commit fc83a05

Please sign in to comment.