From 5bcdb432f6093861f9423a811b279de6e17df51d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hampus=20Sj=C3=B6berg?= Date: Tue, 23 Jul 2024 22:00:23 +0200 Subject: [PATCH] Add Polish language --- src/i18n/i18n.constants.ts | 4 ++++ src/i18n/i18n.ts | 2 ++ src/i18n/pl.ts | 4 ++++ 3 files changed, 10 insertions(+) create mode 100644 src/i18n/pl.ts diff --git a/src/i18n/i18n.constants.ts b/src/i18n/i18n.constants.ts index be2b488fe..753885538 100755 --- a/src/i18n/i18n.constants.ts +++ b/src/i18n/i18n.constants.ts @@ -144,6 +144,10 @@ export const languages: ILanguages = { id: "no", name: "Norsk", }, + pl: { + id: "pl", + name: "Polski", + }, pt: { id: "pt", name: "Português", diff --git a/src/i18n/i18n.ts b/src/i18n/i18n.ts index 6738fc022..4d166cd66 100755 --- a/src/i18n/i18n.ts +++ b/src/i18n/i18n.ts @@ -18,6 +18,7 @@ import fr from "./fr"; import ko from "./ko"; import nl from "./nl"; import no from "./no"; +import pl from "./pl"; import tlh from "./tlh"; import ro from "./ro"; import sv from "./sv"; @@ -53,6 +54,7 @@ const createI18n = (language: string): i18nInstance => { ko, nl, no, + pl, tlh, ro, sv, diff --git a/src/i18n/pl.ts b/src/i18n/pl.ts new file mode 100644 index 000000000..46db82a47 --- /dev/null +++ b/src/i18n/pl.ts @@ -0,0 +1,4 @@ +import { Resource } from "i18next"; +import t from "../../locales/pl.json"; + +export default t as Resource;