docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class LocaleExtensions

    Class that facilitates localization code extensions.

    Inheritance
    object
    LocaleExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Purchasing
    Assembly: Unity.Purchasing.dll
    Syntax
    public static class LocaleExtensions

    Methods

    GetLabelsWithSupportedPlatforms()

    For every enum value in TranslationLocale, build a string with Labels + GoogleLocales for each platform supported.

    Declaration
    public static string[] GetLabelsWithSupportedPlatforms()
    Returns
    Type Description
    string[]

    Labels with supported platforms.

    SupportedOnApple(TranslationLocale)

    Checks that a TranslationLocale is supported on Apple.

    Declaration
    public static bool SupportedOnApple(this TranslationLocale locale)
    Parameters
    Type Name Description
    TranslationLocale locale

    The locale to check.

    Returns
    Type Description
    bool

    If the locale is supported or not.

    SupportedOnGoogle(TranslationLocale)

    Checks that a TranslationLocale is supported on Google.

    Declaration
    public static bool SupportedOnGoogle(this TranslationLocale locale)
    Parameters
    Type Name Description
    TranslationLocale locale

    The locale to check.

    Returns
    Type Description
    bool

    If the locale is supported or not.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)