docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class LocalizableContent

    Represents a string with localizations and a default value to fall back on.

    Inheritance
    object
    JsObject
    LocalizableContent
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Meta.InstantGames.v8
    Assembly: Unity.Meta.InstantGames.Sdk.v8.dll
    Syntax
    public class LocalizableContent : JsObject

    Constructors

    LocalizableContent(string, LocalizationsDict)

    Creates a new instance of LocalizableContent

    Declaration
    public LocalizableContent(string defaultValue, LocalizationsDict localizations)
    Parameters
    Type Name Description
    string defaultValue

    The default value of the string to use if the viewer's locale is not a key in the localizations object.

    LocalizationsDict localizations

    Specifies what string to use for viewers in each locale. See https://lookaside.facebook.com/developers/resources/?id=FacebookLocales.xml for a complete list of supported locale values.

    Properties

    Default

    The default value of the string to use if the viewer's locale is not a key in the localizations object.

    Declaration
    public string Default { get; }
    Property Value
    Type Description
    string

    Localizations

    Specifies what string to use for viewers in each locale. See https://lookaside.facebook.com/developers/resources/?id=FacebookLocales.xml for a complete list of supported locale values.

    Declaration
    public LocalizationsDict Localizations { get; }
    Property Value
    Type Description
    LocalizationsDict
    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)