s&box docs

public static abstract sealed class Sandbox.Language

Allows access to translated phrases, allowing the translation of gamemodes etc

Broader workflow and conceptual references connected to this API.

Methods

Showing 1 methods

public static string GetPhrase(string textToken, System.Collections.Generic.Dictionary`2<string,object> data = null)

Parameters

  • data: Default: null

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.

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.Language

On this page