API ReferenceSandbox
LanguageContainerclass
A container for the current language, allowing access to translated phrases and language information.
object→LanguageContainer
Methods1
Showing 1 methods
public string GetPhrase(string textToken, System.Collections.Generic.Dictionary`2<string,object> data = null)
| Parameter | Type | Description |
|---|---|---|
| textToken | string | — |
| data = null | Dictionary<string,object> | — |
Returns:
string—No results match this filter.
Properties2
Showing 2 properties
public Sandbox.Localization.LanguageInformation Sandbox.LanguageContainer.Current { get; set; }
Information about the current selected language. Will default to English if the current language isn't found.
public string Sandbox.LanguageContainer.SelectedCode { get; set; }
The abbreviation for the language the user wants. This is set by the user in the options menu.
Returns:
string—No results match this filter.