文档

Unity Engine

Unity Engine

PluralRules

Maps two-letter ISO language codes to their pluralization rules. PluralRules are used by extensions like TimeFormatter and PluralLocalizationFormatter.
阅读时间1 分钟最后更新于 19 天前

Definition

public static class PluralRules

Static Properties

Property

Description

IsoLangToDelegateMapping of each two-letter ISO language code to its PluralRules.PluralRuleDelegate.

Static Methods

Method

Description

GetPluralRuleGets the pluralization rule for the specified language code.
RestoreDefaultRestores the built-in pluralization rule for every language.

Delegates

Delegate

Description

PluralRules.PluralRuleDelegateDetermines 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.