feat: add Polish localization (#1123)
* Add Polish (pl) localization * translations * fix: add missing Polish translations * copy en keys to pl * fix: complete Polish settings translations * fix: localize PWA install prompt * fix pwa install prompt lifecycle and complete Polish locale keys * polish polish locale wording for natural phrasing --------- Co-authored-by: levy52 <levy52@vp.pl> Co-authored-by: Bohdan Triapitsyn <artmore@protonmail.com>
This commit is contained in:
committed by
GitHub
co-authored by
levy52
Bohdan Triapitsyn
parent
ce4c5ae99f
commit
7eff2f725f
@@ -25,13 +25,15 @@ async function loadDictionary(locale: Locale): Promise<I18nDictionary> {
|
||||
? await import('./messages/zh-CN') as { dict: I18nDictionary }
|
||||
: locale === 'es'
|
||||
? await import('./messages/es') as { dict: I18nDictionary }
|
||||
: locale === 'pt-BR'
|
||||
? await import('./messages/pt-BR') as { dict: I18nDictionary }
|
||||
: locale === 'uk'
|
||||
? await import('./messages/uk') as { dict: I18nDictionary }
|
||||
: locale === 'ko'
|
||||
? await import('./messages/ko') as { dict: I18nDictionary }
|
||||
: { dict: enDict };
|
||||
: locale === 'pt-BR'
|
||||
? await import('./messages/pt-BR') as { dict: I18nDictionary }
|
||||
: locale === 'uk'
|
||||
? await import('./messages/uk') as { dict: I18nDictionary }
|
||||
: locale === 'ko'
|
||||
? await import('./messages/ko') as { dict: I18nDictionary }
|
||||
: locale === 'pl'
|
||||
? await import('./messages/pl') as { dict: I18nDictionary }
|
||||
: { dict: enDict };
|
||||
dictionaries.set(locale, mod.dict);
|
||||
return mod.dict;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user