Class LocalizableContent
Represents a string with localizations and a default value to fall back on.
Inherited Members
Namespace: Meta.InstantGames
Assembly: Unity.Meta.InstantGames.Sdk.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. |
Localizations |
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 |
---|---|
Localizations |