-
Notifications
You must be signed in to change notification settings - Fork 26
MobileCRM.Localization.getLoadedLangId
rescocrm edited this page May 15, 2023
·
9 revisions
Asynchronously gets currently loaded localization language.
The default language is "en-US".
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);
}