Class PluralRules
Assigns the ISO language code to a pluralization rule.
Namespace: UnityEngine.Localization.SmartFormat.Utilities
Syntax
public static class PluralRules
Fields
IsoLangToDelegate
Holds the ISO langue code as key, and the PluralRules.PluralRuleDelegate with the pluralization rule.
Declaration
public static Dictionary<string, PluralRules.PluralRuleDelegate> IsoLangToDelegate
Field Value
Type | Description |
---|---|
Dictionary<String, PluralRules.PluralRuleDelegate> |
Methods
GetPluralRule(String)
Construct a rule set for the language code.
Declaration
public static PluralRules.PluralRuleDelegate GetPluralRule(string twoLetterISOLanguageName)
Parameters
Type | Name | Description |
---|---|---|
String | twoLetterISOLanguageName | The language code in two-letter ISO-639 format. |
Returns
Type | Description |
---|---|
PluralRules.PluralRuleDelegate |
Remarks
The pluralization rules are taken from http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html