From e66512285dc72ec3a7000d3f902b52413f9f0254 Mon Sep 17 00:00:00 2001 From: hill Date: Tue, 26 Nov 2024 12:55:59 +0000 Subject: [PATCH 1/3] Create zh-TW.ts --- quartz/i18n/locales/zh-TW.ts | 82 ++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 quartz/i18n/locales/zh-TW.ts diff --git a/quartz/i18n/locales/zh-TW.ts b/quartz/i18n/locales/zh-TW.ts new file mode 100644 index 0000000000000..f6afbf47adc8f --- /dev/null +++ b/quartz/i18n/locales/zh-TW.ts @@ -0,0 +1,82 @@ +import { Translation } from "./definition" + +export default { + propertyDefaults: { + title: "無題", + description: "無描述", + }, + components: { + callout: { + note: "筆記", + abstract: "摘要", + info: "提示", + todo: "待辦", + tip: "提示", + success: "成功", + question: "問題", + warning: "警告", + failure: "失敗", + danger: "危險", + bug: "錯誤", + example: "範例", + quote: "引用", + }, + backlinks: { + title: "反向連結", + noBacklinksFound: "無法找到反向連結", + }, + themeToggle: { + lightMode: "亮色模式", + darkMode: "暗色模式", + }, + explorer: { + title: "探索", + }, + footer: { + createdWith: "使用以下創建", + }, + graph: { + title: "關係圖譜", + }, + recentNotes: { + title: "最近的筆記", + seeRemainingMore: ({ remaining }) => `查看更多 ${remaining} 篇筆記 →`, + }, + transcludes: { + transcludeOf: ({ targetSlug }) => `包含 ${targetSlug}`, + linkToOriginal: "指向原始筆記的連結", + }, + search: { + title: "搜尋", + searchBarPlaceholder: "搜尋些什麼", + }, + tableOfContents: { + title: "目錄", + }, + contentMeta: { + readingTime: ({ minutes }) => `閱讀時間約 ${minutes} 分鐘`, + }, + }, + pages: { + rss: { + recentNotes: "最近的筆記", + lastFewNotes: ({ count }) => `最近的 ${count} 條筆記`, + }, + error: { + title: "無法找到", + notFound: "私人筆記或筆記不存在。", + home: "返回首頁", + }, + folderContent: { + folder: "資料夾", + itemsUnderFolder: ({ count }) => `此資料夾下有 ${count} 條筆記。`, + }, + tagContent: { + tag: "標籤", + tagIndex: "標籤索引", + itemsUnderTag: ({ count }) => `此標籤下有 ${count} 條筆記。`, + showingFirst: ({ count }) => `顯示前 ${count} 個標籤。`, + totalTags: ({ count }) => `總共有 ${count} 個標籤。`, + }, + }, +} as const satisfies Translation From 898bc187ee1db7062d35bd6613e312e671c04b7f Mon Sep 17 00:00:00 2001 From: hill Date: Wed, 27 Nov 2024 16:10:45 +0000 Subject: [PATCH 2/3] Update zh-TW.ts --- quartz/i18n/locales/zh-TW.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quartz/i18n/locales/zh-TW.ts b/quartz/i18n/locales/zh-TW.ts index f6afbf47adc8f..f0db0bf0c2551 100644 --- a/quartz/i18n/locales/zh-TW.ts +++ b/quartz/i18n/locales/zh-TW.ts @@ -33,7 +33,7 @@ export default { title: "探索", }, footer: { - createdWith: "使用以下創建", + createdWith: "Created with", }, graph: { title: "關係圖譜", From c8e3a763b1be9a6ac8822791599ef4c6fe773c25 Mon Sep 17 00:00:00 2001 From: hill Date: Tue, 3 Dec 2024 10:31:41 +0100 Subject: [PATCH 3/3] add zh-TW to index.ts --- quartz/i18n/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/quartz/i18n/index.ts b/quartz/i18n/index.ts index f328ada8d5ea1..97b0323b80b72 100644 --- a/quartz/i18n/index.ts +++ b/quartz/i18n/index.ts @@ -14,6 +14,7 @@ import uk from "./locales/uk-UA" import ru from "./locales/ru-RU" import ko from "./locales/ko-KR" import zh from "./locales/zh-CN" +import zhTw from "./locales/zh-TW" import vi from "./locales/vi-VN" import pt from "./locales/pt-BR" import hu from "./locales/hu-HU" @@ -59,6 +60,7 @@ export const TRANSLATIONS = { "ru-RU": ru, "ko-KR": ko, "zh-CN": zh, + "zh-TW": zhTw, "vi-VN": vi, "pt-BR": pt, "hu-HU": hu,