API ReferenceSandbox
Languageclass
Allows access to translated phrases, allowing the translation of gamemodes etc
object→Language
Methods1
Showing 1 methods
public static 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 static Sandbox.Localization.LanguageInformation Sandbox.Language.Current { get; set; }
Information about the current selected language. Will default to English if the current language isn't found.
public static string Sandbox.Language.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.