public static abstract sealed class Sandbox.Language
Allows access to translated phrases, allowing the translation of gamemodes etc
Related Guides
Broader workflow and conceptual references connected to this API.
S&box is coded in C#. Under the hood, it uses the Source 2 engine (CS2, HL:Alyx, DOTA2) and some of its systems: rendering, resources, physics, and audio.
Shader Graph is a visual scripting language that compiles to shader code. This is great for those who have never touched shader languages as well as those who have deep shader knowledge and want to quickly and easily prototype a shader idea they have.
You can create different types of shaders in s&box through code or the ShaderGraph.
ActionGraph is a visual scripting language. Each node describes an action or expression, and links between nodes carry values or signals.
When displaying text such as Hello World, you should instead use a localization token like #menu.helloworld. This will automatically replace the text with the corresponding language set by the user when set on a Label, allowing you to easily support multiple languages.
S&box is coded in C#. Under the hood, it uses the Source 2 engine (CS2, HL:Alyx, DOTA2) and some of its systems: rendering, resources, physics, and audio.
Methods
Showing 1 methods
public static string GetPhrase(string textToken, System.Collections.Generic.Dictionary`2<string,object> data = null)
Parameters
data: Default: null
No results match this filter.
Properties
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.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.Language |