feat(i18n): add Ukrainian localization (#882)

This commit is contained in:
Ivan Demchuk 2023-01-08 21:35:48 +02:00 committed by GitHub
parent efe406df5b
commit 1dcaf41c0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 448 additions and 4 deletions

View file

@ -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',