s&box docs

public class Sandbox.LanguageContainer

A container for the current language, allowing access to translated phrases and language information.

Methods

Showing 1 methods

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

Parameters

  • data: Default: null

Properties

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.

Metadata

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

On this page