feat(i18n): add Ukrainian localization (#882)
This commit is contained in:
parent
efe406df5b
commit
1dcaf41c0f
5 changed files with 448 additions and 4 deletions
|
@ -55,6 +55,18 @@ const locales: LocaleObjectData[] = [
|
|||
file: 'fr-FR.json',
|
||||
name: 'Français',
|
||||
},
|
||||
{
|
||||
code: 'uk-UA',
|
||||
file: 'uk-UA.json',
|
||||
name: 'Українська',
|
||||
pluralRule: (choice: number) => {
|
||||
if (choice === 0)
|
||||
return 0
|
||||
|
||||
const name = new Intl.PluralRules('uk-UA').select(choice)
|
||||
return { zero: 0, one: 1, two: 0 /* not used */, few: 2, many: 3, other: 4 }[name]
|
||||
},
|
||||
},
|
||||
{
|
||||
code: 'cs-CZ',
|
||||
file: 'cs-CZ.json',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue