Module plural_rules

Module plural_rules 

Source

Structs§

PluralValidationReport
Non-fatal report describing missing plural categories for a key in a locale.

Functions§

autofix_fill_missing_from_other_resource
Autofix: for each plural entry, fill missing categories using the ‘other’ value if available. Marks the entry status as NeedsReview when any categories are added. Skips DoNotTranslate.
collect_resource_plural_issues
Collect non-fatal plural issues for a single resource.
missing_categories_for_plural
Compute which required categories are missing for a given plural entry and language.
required_categories_for
Returns the required CLDR plural categories for a given language identifier.
required_categories_for_str
Helper for string language codes (accepts underscores, normalizes to hyphen).
validate_resource_plurals
Validate a single resource for missing plural categories.