Class: SystemLang

SystemLang

A name that can have several translations

new SystemLang (json)

Name Type Description
json Object optional Json object describing the name in sevaral langs
Properties:
Name Type Argument Default Description
SystemLang.EMPTY_NAMES Object <optional>
{names:["",""]} The default json for no names
names Array.<string> <optional>
[] The different names list according to lang ID

Methods

read (json)

Read the JSON associated to the name in sevaral langs
Name Type Description
json Object Json object describing the name in sevaral langs

name ()string

Get the name according to current lang
Returns:
Type Description
string

getCommand ()

Update lang according to a command list and iterator