I18n

I18n

Constructor

new I18n()

Methods

get(key, code) → {string}

Get text of key

Parameters:
Name Type Description
key string

key of text

code string

locale code

Returns:
string

setCode(code)

Set locale code

Parameters:
Name Type Description
code string

locale code

setLang(codes, data)

Set language set

Parameters:
Name Type Description
codes string | Array.<string>

locale code

data object

language set