Translations JavaScript API
The Max platform includes a JQuery translation API in JavaScript.
Methods
Translate by Full Identifier
$.Intalio.Translation.translate(fullIdentifier, *args)
Translate Metadata
The fourth parameter (defaultValue) is optional.
$.Intalio.Translation.translateMetadata(objectFullIdentifier, recordId, fieldFullIdentifier, *defaultValue)
Examples
Return View Summary
$.Intalio.Translation.translate('io_view_summary')
Return param1 as An Invalid Font Size
$.Intalio.Translation.translate('io_invalid_font_size', "param1")
Return Showcase Action Demo
$.Intalio.Translation.translateMetadata('io_control', "c1c86cea-247e-4d49-ab2f-eab1d299272b", 'io_name')
Return Default Value to return
$.Intalio.Translation.translateMetadata('io_control', "ab48d449-25cd-4682-a4d8-40eb3266e342", 'io_name', "Default Value to return")
For more information:
Was this helpful?