new mmir.compat.v3.LanguageManager()
Methods
-
setNextLanguage(){String}
-
Cycles through the available languages.
Returns:
Type Description String The (new) current language -
asyncsetToCompatibilityMode(success, requireFunction){Promise}
-
Set to "backwards compatibility mode" (for pre version 2.0). This function re-adds deprecated and removed functions and properties to the CommonUtils instance. NOTE that once set to compatibility mode, it cannot be reset to non-compatibility mode. NOTE: Requires jQuery to be present.
Name Type Description success
function optional a callback function that is invoked, after compatibility mode was set (alternatively the returned promise can be used). requireFunction
function optional the require-function that is configured for loading the compatibility module/file. Normally, this would be the function mmir.require
. If omitted, the globalrequire
function will be used. NOTE: this argument is positional, i.e. argumentsuccess
must be present, if you want to specify this argument- Deprecated
- use only for backwards compatibility
Returns:
Type Description Promise a deferred promise that is resolved, after compatibility mode was set