From a6417c447af8f0ff203ffb8730e53e4a7dfafb23 Mon Sep 17 00:00:00 2001
From: kabirgh <15871468+kabirgh@users.noreply.github.com>
Date: Sat, 24 Feb 2024 02:40:42 +0000
Subject: [PATCH] fix(fast rebuild): handle added an deleted markdown correctly (#921)
---
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