From c760ceaa5f36c77fa3ce320fae1b4597d2d8b976 Mon Sep 17 00:00:00 2001 From: TheCatLady <52870424+TheCatLady@users.noreply.github.com> Date: Wed, 1 Dec 2021 20:58:46 -0500 Subject: [PATCH] feat(lang): add Polish display language (#2261) --- src/context/LanguageContext.tsx | 11 ++++++++--- src/pages/_app.tsx | 2 ++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/context/LanguageContext.tsx b/src/context/LanguageContext.tsx index 2114274c7..889cbea0f 100644 --- a/src/context/LanguageContext.tsx +++ b/src/context/LanguageContext.tsx @@ -14,6 +14,7 @@ export type AvailableLocale = | 'hu' | 'nb-NO' | 'nl' + | 'pl' | 'pt-BR' | 'pt-PT' | 'ru' @@ -72,6 +73,10 @@ export const availableLanguages: AvailableLanguageObject = { code: 'nb-NO', display: 'Norsk Bokmål', }, + pl: { + code: 'pl', + display: 'Polski', + }, 'pt-BR': { code: 'pt-BR', display: 'Português (Brasil)', @@ -94,7 +99,7 @@ export const availableLanguages: AvailableLanguageObject = { }, sr: { code: 'sr', - display: 'српски језик‬', + display: 'српски језик', }, ja: { code: 'ja', @@ -102,11 +107,11 @@ export const availableLanguages: AvailableLanguageObject = { }, 'zh-TW': { code: 'zh-TW', - display: '‪繁體中文‬', + display: '繁體中文', }, 'zh-CN': { code: 'zh-CN', - display: '‪简体中文‬', + display: '简体中文', }, }; diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index ab881702b..afb3fc69b 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -47,6 +47,8 @@ const loadLocaleData = (locale: AvailableLocale): Promise => { return import('../i18n/locale/nb_NO.json'); case 'nl': return import('../i18n/locale/nl.json'); + case 'pl': + return import('../i18n/locale/pl.json'); case 'pt-BR': return import('../i18n/locale/pt_BR.json'); case 'pt-PT':