Translations class

Represents collection of parameters and their values.

Methods

get(string, string)

Returns the parameter value in type String. The parameter must have the same type as String. Currently only String, int and bool are allowed. If the name is not available, the specified defaultValue is returned.

set(string, string)

Sets the String value of the parameter specified by name.

Method Details

get(string, string)

Returns the parameter value in type String. The parameter must have the same type as String. Currently only String, int and bool are allowed. If the name is not available, the specified defaultValue is returned.

function get(key: string, def?: string)

Parameters

key
string

The parameter name.

def
string

The default value which is returned if the parameter is not available in the collection.

Returns

string

set(string, string)

Sets the String value of the parameter specified by name.

function set(key: string, value: string)

Parameters

key
string

The parameter name.

value
string

The value of the parameter.