From e85ea490003870c5a6c004bb2e6bd6d76769a2ce Mon Sep 17 00:00:00 2001
From: KylinDC <solder-hulls.06@icloud.com>
Date: Mon, 19 Feb 2024 18:31:09 +0000
Subject: [PATCH] feat(i18n): add Simplified Chinese (#896)

---
 quartz/i18n/index.ts |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/quartz/i18n/index.ts b/quartz/i18n/index.ts
index f9758d3..38d3562 100644
--- a/quartz/i18n/index.ts
+++ b/quartz/i18n/index.ts
@@ -1,6 +1,7 @@
-import { Translation } from "./locales/definition"
+import { Translation, CalloutTranslation } from "./locales/definition"
 import en from "./locales/en-US"
 import fr from "./locales/fr-FR"
+import it from "./locales/it-IT"
 import ja from "./locales/ja-JP"
 import de from "./locales/de-DE"
 import nl from "./locales/nl-NL"
@@ -8,13 +9,18 @@
 import es from "./locales/es-ES"
 import ar from "./locales/ar-SA"
 import uk from "./locales/uk-UA"
+import ru from "./locales/ru-RU"
+import ko from "./locales/ko-KR"
+import zh from "./locales/zh-CN"
 
 export const TRANSLATIONS = {
   "en-US": en,
   "fr-FR": fr,
+  "it-IT": it,
   "ja-JP": ja,
   "de-DE": de,
   "nl-NL": nl,
+  "nl-BE": nl,
   "ro-RO": ro,
   "ro-MD": ro,
   "es-ES": es,
@@ -39,8 +45,12 @@
   "ar-DZ": ar,
   "ar-MR": ar,
   "uk-UA": uk,
+  "ru-RU": ru,
+  "ko-KR": ko,
+  "zh-CN": zh,
 } as const
 
 export const defaultTranslation = "en-US"
 export const i18n = (locale: ValidLocale): Translation => TRANSLATIONS[locale ?? defaultTranslation]
 export type ValidLocale = keyof typeof TRANSLATIONS
+export type ValidCallout = keyof CalloutTranslation

--
Gitblit v1.10.0