Skip to content

Commit 2636098

Browse files
committed
feat(i18n): Add Polish translation 🇵🇱
1 parent 7ae58e6 commit 2636098

File tree

3 files changed

+1515
-0
lines changed

3 files changed

+1515
-0
lines changed

‎config/i18n.ts‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,17 @@ const locales: (LocaleObjectData | (Omit<LocaleObjectData, 'code'> & { code: str
255255
file: 'it-IT.json',
256256
name: 'Italiano',
257257
},
258+
{
259+
code: 'pl-PL',
260+
file: 'pl-PL.json',
261+
name: 'Polski',
262+
pluralRule: (choice: number) => {
263+
if (choice === 0) return 0
264+
265+
const name = new Intl.PluralRules('pl-PL').select(choice)
266+
return { zero: 0, one: 1, two: 0, few: 2, many: 3, other: 4 }[name]
267+
},
268+
},
258269
/*{
259270
code: 'sv',
260271
file: 'sv.json',

0 commit comments

Comments
 (0)