PluralRules
Maps two-letter ISO language codes to their pluralization rules. PluralRules are used by extensions like TimeFormatter and PluralLocalizationFormatter.
阅读时间1 分钟最后更新于 19 天前
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. |
| RestoreDefault | Restores the built-in pluralization rule for every language. |
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. |