@@ -109,10 +109,6 @@ const locales: (LocaleObjectData | (Omit<LocaleObjectData, 'code'> & { code: str
109109 name : 'العربية' ,
110110 dir : 'rtl' ,
111111 pluralRule : createPluralRule ( 'ar-EG' , { zero : 0 , one : 1 , two : 2 , few : 3 , many : 4 , other : 5 } ) ,
112- // pluralRule: (choice: number) => {
113- // const name = new Intl.PluralRules('ar-EG').select(choice)
114- // return { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 }[name]
115- // },
116112 } ,
117113 {
118114 code : 'az-AZ' ,
@@ -169,10 +165,6 @@ const locales: (LocaleObjectData | (Omit<LocaleObjectData, 'code'> & { code: str
169165 file : 'hu-HU.json' ,
170166 name : 'Magyar' ,
171167 pluralRule : createPluralRule ( 'hu-HU' , { zero : 0 , one : 0 , two : 1 , few : 1 , many : 1 , other : 1 } ) ,
172- // pluralRule: (choice: number) => {
173- // const name = new Intl.PluralRules('hu-HU').select(choice)
174- // return { zero: 0, one: 0, two: 1, few: 1, many: 1, other: 1 }[name]
175- // },
176168 } ,
177169 {
178170 code : 'zh-CN' ,
@@ -219,34 +211,12 @@ const locales: (LocaleObjectData | (Omit<LocaleObjectData, 'code'> & { code: str
219211 file : 'ru-RU.json' ,
220212 name : 'Русский' ,
221213 pluralRule : createPluralRule ( 'ru-RU' , { zero : 2 , one : 0 , two : 1 , few : 1 , many : 2 , other : 3 } ) ,
222- // pluralRule: (choice: number) => {
223- // const name = new Intl.PluralRules('ru-RU').select(choice)
224- // return { zero: 2, one: 0, two: 1, few: 1, many: 2, other: 3 }[name]
225- // },
226214 } ,
227215 {
228216 code : 'uk-UA' ,
229217 file : 'uk-UA.json' ,
230218 name : 'Українська' ,
231219 pluralRule : createPluralRule ( 'uk-UA' , { zero : 0 , one : 1 , two : 0 , few : 2 , many : 3 , other : 4 } ) ,
232- // pluralRule: (choice: number, choicesLength: number) => {
233- // if (choice === 0) return 0
234-
235- // const name = new Intl.PluralRules('uk-UA').select(choice)
236- // const plural = { zero: 0, one: 1, two: 0, few: 2, many: 3, other: 4 }[name]
237-
238- // // In case translation doesn't have all plural forms, use the last available form
239- // if (plural > choicesLength - 1) {
240- // if (import.meta.dev) {
241- // console.warn(
242- // `Plural form index ${plural} for choice ${choice} exceeds available forms ${choicesLength} for locale uk-UA.`,
243- // )
244- // }
245- // return choicesLength - 1
246- // }
247-
248- // return plural
249- // },
250220 } ,
251221 /*{
252222 code: 'ru-RU',
@@ -262,10 +232,6 @@ const locales: (LocaleObjectData | (Omit<LocaleObjectData, 'code'> & { code: str
262232 file : 'cs-CZ.json' ,
263233 name : 'Čeština' ,
264234 pluralRule : createPluralRule ( 'cs-CZ' , { zero : 2 , one : 0 , two : 1 , few : 1 , many : 2 , other : 2 } ) ,
265- // pluralRule: (choice: number) => {
266- // const name = new Intl.PluralRules('cs-CZ').select(choice)
267- // return { zero: 2, one: 0, two: 1, few: 1, many: 2, other: 2 }[name]
268- // },
269235 } /*
270236 {
271237 code: 'pl-PL',
@@ -324,12 +290,6 @@ const locales: (LocaleObjectData | (Omit<LocaleObjectData, 'code'> & { code: str
324290 file : 'pl-PL.json' ,
325291 name : 'Polski' ,
326292 pluralRule : createPluralRule ( 'pl-PL' , { zero : 0 , one : 1 , two : 0 , few : 2 , many : 3 , other : 4 } ) ,
327- // pluralRule: (choice: number) => {
328- // if (choice === 0) return 0
329-
330- // const name = new Intl.PluralRules('pl-PL').select(choice)
331- // return { zero: 0, one: 1, two: 0, few: 2, many: 3, other: 4 }[name]
332- // },
333293 } ,
334294 {
335295 code : 'pt-BR' ,
0 commit comments