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':