docs.unity3d.com
    Show / Hide Table of Contents

    Class PluralRules

    Assigns the ISO language code to a pluralization rule.

    Inheritance
    Object
    PluralRules
    Namespace: UnityEngine.Localization.SmartFormat.Utilities
    Syntax
    public static class PluralRules : object

    Fields

    IsoLangToDelegate

    Holds the ISO language code as key, and the PluralRules.PluralRuleDelegate with the pluralization rule.

    Declaration
    public static readonly 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

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023