PluralRules
Maps two-letter ISO language codes to their pluralization rules. PluralRules are used by extensions like TimeFormatter and PluralLocalizationFormatter.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Class
- Namespace: Unity.SmartStrings.Utilities
- Assembly: UnityEngine.SmartStringsModule
public static class PluralRules
Static Properties
Property | Description |
|---|---|
| IsoLangToDelegate | Mapping of each two-letter ISO language code to its PluralRules.PluralRuleDelegate. |
Static Methods
Method | Description |
|---|---|
| GetPluralRule | Gets the pluralization rule for the specified language code. |
Delegates
Delegate | Description |
|---|---|
| PluralRules.PluralRuleDelegate | Determines which singular or plural word to use for a given quantity. This allows each language to define its own behavior for singular or plural words. |