Namespace: Lang

SuperMap.Lang

An internationalized namespace that contains multiple languages and method libraries to set and get the current language.

Members

SuperMap.Lang.codestring

The type of language currently in use.

SuperMap.Lang.defaultCodestring

The language type used by default.

Default Value:
'en-US'

Methods

SuperMap.Lang.getCode(){string}

Lang.js, line 28

Get the current language code.

Returns:
Type Description
string The current language code.

SuperMap.Lang.getLanguageFromCookie()

Lang.js, line 66

Get the language type from the cookie.

SuperMap.Lang.i18n(key){string}

Lang.js, line 85

Find the key from the dictionary of the current language string.

Name Type Description
key string

The keyword for the i18n string value in the dictionary.

Returns:
Type Description
string Internationalized string.

SuperMap.Lang.setCode(code)

Lang.js, line 40

Set the language code.

Name Type Description
code string

This parameter follows the IETF specification.