feat(i18n): added Polish translations (#1339)
Co-authored-by: Karol Krenski <kkrenski@gmail.com>
This commit is contained in:
parent
29e5d6ddf7
commit
844fb26d27
2 changed files with 541 additions and 0 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue