Skip to main content

Get Multilingual String from Client Side in Aras Innovator

Most of strings are defined in XML resource file located at directory "/Client/xml". There are two ways to get multilingual string with JavaScript at client side. One is to use "ResourceManager" class, another one is using the function of Aras object.

ResourceManager Class


var rm = new ResourceManager (new Solution('core'), 'ui_resources.xml', aras.getSessionContextLanguageCode());
var resourceValue = rm.getString('common.yes');
//Yes

Aras Object


var resourceValue = aras.getResource('','common.yes');
//Yes

Comments