From ba836dd3e0cda5df23f6d34539809d36805d230e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=BE=E6=B5=A6=20=E7=9F=A5=E4=B9=9F=20Matsuura=20Tomoy?= =?UTF-8?q?a?= Date: Tue, 6 Feb 2024 01:58:31 +0900 Subject: [PATCH] feat(i18n): Add Japanese to i18n (#809) Co-authored-by: Jacky Zhao --- quartz/i18n/index.ts | 2 ++ quartz/i18n/locales/ja-JP.ts | 63 ++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 quartz/i18n/locales/ja-JP.ts diff --git a/quartz/i18n/index.ts b/quartz/i18n/index.ts index 6ae2a16f0..25aa5fba2 100644 --- a/quartz/i18n/index.ts +++ b/quartz/i18n/index.ts @@ -1,11 +1,13 @@ import { Translation } from "./locales/definition" import en from "./locales/en-US" import fr from "./locales/fr-FR" +import ja from "./locales/ja-JP" import de from "./locales/de-DE" export const TRANSLATIONS = { "en-US": en, "fr-FR": fr, + "ja-JP": ja, "de-DE": de, } as const diff --git a/quartz/i18n/locales/ja-JP.ts b/quartz/i18n/locales/ja-JP.ts new file mode 100644 index 000000000..a886d84f8 --- /dev/null +++ b/quartz/i18n/locales/ja-JP.ts @@ -0,0 +1,63 @@ +import { Translation } from "./definition" + +export default { + propertyDefaults: { + title: "無題", + description: "説明なし", + }, + components: { + 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: "目次", + }, + }, + pages: { + rss: { + recentNotes: "最近の記事", + lastFewNotes: ({ count }) => `最新の${count}件`, + }, + error: { + title: "Not Found", + notFound: "ページが存在しないか、非公開設定になっています。", + }, + folderContent: { + folder: "フォルダ", + itemsUnderFolder: ({ count }) => `${count}件のページ`, + }, + tagContent: { + tag: "タグ", + tagIndex: "タグ一覧", + itemsUnderTag: ({ count }) => `${count}件のページ`, + showingFirst: ({ count }) => `のうち最初の${count}件を表示しています`, + totalTags: ({ count }) => `全${count}個のタグを表示中`, + }, + }, +} as const satisfies Translation