Class PluralLocalizationFormatter
Provides the ability to handle plural forms.
Inherited Members
Namespace: UnityEngine.Localization.SmartFormat.Extensions
Assembly: Unity.Localization.dll
Syntax
[Serializable]
public class PluralLocalizationFormatter : FormatterBase, IFormatter, ISerializationCallbackReceiver, IFormatterLiteralExtractor
Constructors
Name | Description |
---|---|
PluralLocalizationFormatter() | Creates a new instance of the formatter. |
Properties
Name | Description |
---|---|
DefaultNames | |
DefaultTwoLetterISOLanguageName | The default language to use for plurals if one can not be found. |
Methods
Name | Description |
---|---|
GetPluralRule(IFormattingInfo) | Returns the plural rule for the formatting info. |
TryEvaluateFormat(IFormattingInfo) | Writes the current value to the output, using the specified format. IF this extension cannot write the value, returns false, otherwise true. |
WriteAllLiterals(IFormattingInfo) | Ignores the format arguments and writes every possible literal value. This is used to extract all possible values so that we can determine the distinct characters for font generation etc. |