From a97e72f2192ebb07c221acd4bb39840d10ac2c49 Mon Sep 17 00:00:00 2001
From: Bartłomiej Garbiec <garbiec@bartek.me>
Date: Mon, 20 May 2024 19:36:32 +0000
Subject: [PATCH] i18n: add Polish translation (#1148)
---
quartz/i18n/index.ts | 22 +++++++++++++++++++++-
1 files changed, 21 insertions(+), 1 deletions(-)
diff --git a/quartz/i18n/index.ts b/quartz/i18n/index.ts
index f9758d3..eab1f1a 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,23 @@
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"
+import vi from "./locales/vi-VN"
+import pt from "./locales/pt-BR"
+import hu from "./locales/hu-HU"
+import fa from "./locales/fa-IR"
+import pl from "./locales/pl-PL"
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 +50,17 @@
"ar-DZ": ar,
"ar-MR": ar,
"uk-UA": uk,
+ "ru-RU": ru,
+ "ko-KR": ko,
+ "zh-CN": zh,
+ "vi-VN": vi,
+ "pt-BR": pt,
+ "hu-HU": hu,
+ "fa-IR": fa,
+ "pl-PL": pl,
} 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