checks/cldr_categories library
CLDR plural categories required per locale, as of CLDR 44 (2024).
Used by lib/checks/structural/plural_categories.dart to validate
that translations of a plural ICU expression cover all the categories
the locale requires.
Locale matching is BCP-47 language-subtag first: pt-BR matches the
pt entry; an unmatched locale returns null and the plural-category
check is skipped with a soft-mode hint that the table doesn't cover
the locale. Add new entries here as Dialect users adopt new locales.
Constants
-
cldrPluralCategories
→ const Map<
String, Set< String> > -
Categories required by
cardinalplural rules.
Functions
-
requiredCldrCategories(
String locale) → Set< String> ? -
CLDR categories the
localerequires, ornullif Dialect's table doesn't cover it. Tries the full tag first (pt-BR), then the language subtag (pt).