Skip to content

Commit b49c819

Browse files
feat(i18n): add Hungarian translations (#529)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 876aaee commit b49c819

3 files changed

Lines changed: 1501 additions & 5 deletions

File tree

config/i18n.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,15 @@ const locales: (LocaleObjectData | (Omit<LocaleObjectData, 'code'> & { code: str
134134
file: 'de-DE.json',
135135
name: 'Deutsch',
136136
},
137-
/*{
138-
code: 'hu-HU',
139-
file: 'hu-HU.json',
140-
name: 'Magyar',
141-
},*/
137+
{
138+
code: 'hu-HU',
139+
file: 'hu-HU.json',
140+
name: 'Magyar',
141+
pluralRule: (choice: number) => {
142+
const name = new Intl.PluralRules('hu-HU').select(choice)
143+
return { zero: 0, one: 0, two: 1, few: 1, many: 1, other: 1 }[name]
144+
},
145+
},
142146
{
143147
code: 'zh-CN',
144148
file: 'zh-CN.json',

0 commit comments

Comments
 (0)