MobileCRM.Localization.getLoadedLangId - Resconet/JSBridge GitHub Wiki
Asynchronously gets currently loaded localization language.
The default language is "en-US".
Arguments
Argument | Type | Description |
---|---|---|
callback | function(langId) | The callback function that is called asynchronously with currently loaded localization language as argument. |
errorCallback | function(errorMsg) | The errorCallback which is to be called in case of error. |
scope | Object | The scope for callbacks. |
This Example demonstrate how to get current localization loaded language.
MobileCRM.Localization.getLoadedLangId(startPointFn, MobileCRM.bridge.alert, null);
function startPointFn(loadedLangId) {
// returns the localized loaded language id ("EN" for English);
var langId = loadedLangId;
MobileCRM.bridge.alert(loadedLangId);
}