MobileCRM.Localization.getComponentLabel - Resconet/JSBridge GitHub Wiki

Gets the display string for the passed entity and component (view, form) id.

Arguments

Argument Type Description
entityName String The entity logical name.
componentType String The component type. (View, DetailView).
viewName String The component id

This example demonstrates how to get the localized label for certain view for Account entity.

MobileCRM.Localization.initialize(startPointFn, MobileCRM.bridge.alert);
function startPointFn(localization) {
	var viewLabel = MobileCRM.Localization.getComponentLabel("account", "View", "Custom View");
	MobileCRM.bridge.alert(viewLabel);
}