Class: IWMultiLanguageSupport

IWMultiLanguageSupport

Use this class to load the language files for a component at runtime.

new IWMultiLanguageSupport()

The multi language support interface loads the requested language file at runtime.
Since:
  • 0.74

Methods


addLabelFor(label)

Adds a new label which will be updated after the new language pack has been loaded.
Parameters:
Name Type Description
label IWLabel a label
Returns:
Type
void

destroyMultiLanguageSupport()

Destroys all registered listeners and DOM references. This method should be called in the destroy method of your instance.
Returns:
Type
void

getLanguagePack()

Returns the language pack.
Returns:
Type
IWLanguagePack

loadLanguagePack(lang)

Loads the corresponding language file for the specified ISO language code. After the language file has been loaded the onlanguagepackload event is triggered.
Parameters:
Name Type Description
lang String
Returns:
Type
void

toString()

Returns a string representation of the class.
Returns:
Type
String