Skip to content

Commit

Permalink
feat(i18n): added Polish translations (#1339)
Browse files Browse the repository at this point in the history
Co-authored-by: Karol Krenski <[email protected]>
  • Loading branch information
Glaydus and kakrenski authored Jan 22, 2023
1 parent 29e5d6d commit 844fb26
Show file tree
Hide file tree
Showing 2 changed files with 541 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Loading

0 comments on commit 844fb26

Please sign in to comment.