Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/locale-yaml-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,7 @@ Fields:
- `absoluteAtLeast`
- `exactSuffixes`
- `lastTwoDigitsRange`
- `lastTwoDigitSuffixes`
- `lastDigitSuffixes`

Notes:
Expand All @@ -740,6 +741,7 @@ Notes:
- `defaultSuffix` is the fallback suffix when no special rule matches.
- `exactSuffixes` overrides exact numeric values.
- `lastTwoDigitsRange` handles ranges like 11 through 20.
- `lastTwoDigitSuffixes` handles repeating two-digit endings such as every value ending in 20.
- `lastDigitSuffixes` handles trailing-digit special cases such as 1, 2, and 3.
- `absoluteAtLeast` and `useAbsoluteValue` control whether negative numbers are normalized before suffix selection.

Expand Down
4 changes: 2 additions & 2 deletions docs/localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Most consumers only need to set a culture. Contributors now author locale-specif

## Supported Locales

Humanizer includes generated locale data for 101 checked-in locale files:
Humanizer includes generated locale data for 102 checked-in locale files:

Afrikaans (af), Albanian (sq), Amharic (am), Arabic (ar), Assamese (as), Azerbaijani (az), Basque (eu), Belarusian (be), Bengali (bn), Bosnian (bs), Bulgarian (bg), Burmese (my), Catalan (ca), Chinese (zh-CN, zh-Hans, zh-Hant), Croatian (hr), Czech (cs), Danish (da), Dutch (nl), English (en, en-GB, en-IN, en-US), Estonian (et), Finnish (fi), Filipino (fil), French (fr, fr-BE, fr-CH), Galician (gl), German (de, de-CH, de-LI), Georgian (ka), Greek (el), Gujarati (gu), Hausa (ha), Hebrew (he), Hindi (hi), Hungarian (hu), Armenian (hy), Indonesian (id), Igbo (ig), Icelandic (is), Irish (ga), Italian (it), Japanese (ja), Kannada (kn), Kazakh (kk), Khmer (km), Korean (ko), Konkani (kok), Kurdish (ku), Kyrgyz (ky), Lao (lo), Latvian (lv), Lithuanian (lt), Luxembourgish (lb), Macedonian (mk), Malay (ms), Malayalam (ml), Marathi (mr), Maltese (mt), Mongolian (mn), Nepali (ne), Norwegian Bokmål (nb), Norwegian Nynorsk (nn), Odia (or), Pashto (ps), Persian (fa), Polish (pl), Portuguese (pt, pt-BR), Punjabi (pa, pa-Arab), Romanian (ro), Russian (ru), Serbian (sr, sr-Latn), Sinhala (si), Slovak (sk), Slovenian (sl), Somali (so), Spanish (es), Swahili (sw), Swedish (sv), Tamil (ta), Telugu (te), Thai (th), Turkish (tr), Ukrainian (uk), Urdu (ur, ur-IN, ur-PK), Uzbek (uz-Cyrl-UZ, uz-Latn-UZ), Vietnamese (vi), Welsh (cy), Yoruba (yo), Zulu (zu-ZA).
Afrikaans (af), Albanian (sq), Amharic (am), Arabic (ar), Assamese (as), Azerbaijani (az), Basque (eu), Belarusian (be), Bengali (bn), Bosnian (bs), Bulgarian (bg), Burmese (my), Catalan (ca), Chinese (zh-CN, zh-Hans, zh-Hant), Croatian (hr), Czech (cs), Danish (da), Dutch (nl), English (en, en-GB, en-IN, en-US), Estonian (et), Finnish (fi), Filipino (fil), French (fr, fr-BE, fr-CH), Galician (gl), German (de, de-CH, de-LI), Georgian (ka), Greek (el), Gujarati (gu), Hausa (ha), Hebrew (he), Hindi (hi), Hungarian (hu), Armenian (hy), Indonesian (id), Igbo (ig), Icelandic (is), Irish (ga), Italian (it), Japanese (ja), Kannada (kn), Kazakh (kk), Khmer (km), Konkani (kok), Korean (ko), Kurdish (ku), Kyrgyz (ky), Lao (lo), Latvian (lv), Lithuanian (lt), Luxembourgish (lb), Macedonian (mk), Malay (ms), Malayalam (ml), Marathi (mr), Maltese (mt), Mongolian (mn), Nepali (ne), Norwegian Bokmål (nb), Norwegian Nynorsk (nn), Odia (or), Pashto (ps), Persian (fa), Polish (pl), Portuguese (pt, pt-BR), Punjabi (pa, pa-Arab), Romanian (ro), Russian (ru), Serbian (sr, sr-Latn), Sinhala (si), Slovak (sk), Slovenian (sl), Somali (so), Spanish (es), Swahili (sw), Swedish (sv), Tamil (ta), Telugu (te), Thai (th), Turkmen (tk), Turkish (tr), Ukrainian (uk), Urdu (ur, ur-IN, ur-PK), Uzbek (uz-Cyrl-UZ, uz-Latn-UZ), Vietnamese (vi), Welsh (cy), Yoruba (yo), Zulu (zu-ZA).

The supported set above reflects checked-in locale files.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ static string CreateModuloSuffixOrdinalizerExpression(JsonElement root)
return "new ModuloSuffixOrdinalizer(new(" +
QuoteLiteral(GetRequiredString(root, "defaultSuffix")) + ", " +
CreateNullableIntStringFrozenDictionaryExpression(root, "exactSuffixes").Replace("null", "FrozenDictionary<int, string>.Empty") + ", " +
CreateNullableIntStringFrozenDictionaryExpression(root, "lastTwoDigitSuffixes").Replace("null", "FrozenDictionary<int, string>.Empty") + ", " +
CreateNullableIntStringFrozenDictionaryExpression(root, "lastDigitSuffixes").Replace("null", "FrozenDictionary<int, string>.Empty") + ", " +
lastTwoDigitsRange + ", " +
absoluteAtLeast + ", " +
Expand Down
Loading
Loading