feat(i18n): added Polish translations (#1339)

Co-authored-by: Karol Krenski <kkrenski@gmail.com>
This commit is contained in:
Glaydus 2023-01-22 12:13:33 +01:00 committed by GitHub
parent 29e5d6ddf7
commit 844fb26d27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 541 additions and 0 deletions

View file

@ -82,6 +82,18 @@ const locales: LocaleObjectData[] = [
file: 'cs-CZ.json',
name: 'Česky',
},
{
code: 'pl-PL',
file: 'pl-PL.json',
name: 'Polski',
pluralRule: (choice: number) => {
if (choice === 0)
return 0
const name = new Intl.PluralRules('pl-PL').select(choice)
return { zero: 0, one: 1, two: 0 /* not used */, few: 2, many: 3, other: 4 }[name]
},
},
{
code: 'pt-PT',
file: 'pt-PT.json',