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}
D:/iClient9_English0919/src/common/lang/Lang.js, line 28 -
Get the current language code.
Returns:
Type Description string The current language code. -
SuperMap.Lang.getLanguageFromCookie()
D:/iClient9_English0919/src/common/lang/Lang.js, line 66 -
Get the language type from the cookie.
-
SuperMap.Lang.i18n(key){string}
D:/iClient9_English0919/src/common/lang/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)
D:/iClient9_English0919/src/common/lang/Lang.js, line 40 -
Set the language code.
Name Type Description code
string This parameter follows the IETF specification.