Class CustomPluralRuleProvider
Use this class to provide custom plural rules to Smart.Format
Namespace: UnityEngine.Localization.SmartFormat.Extensions
Syntax
public class CustomPluralRuleProvider : IFormatProvider
Constructors
CustomPluralRuleProvider(PluralRules.PluralRuleDelegate)
Declaration
public CustomPluralRuleProvider(PluralRules.PluralRuleDelegate pluralRule)
Parameters
| Type | Name | Description |
|---|---|---|
| PluralRules.PluralRuleDelegate | pluralRule |
Methods
GetFormat(Type)
Declaration
public object GetFormat(Type formatType)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | formatType |
Returns
| Type | Description |
|---|---|
| Object |
GetPluralRule()
Declaration
public PluralRules.PluralRuleDelegate GetPluralRule()
Returns
| Type | Description |
|---|---|
| PluralRules.PluralRuleDelegate |