Quantcast
Channel: SCN: Message List - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 8124

Re: Howto access translations in function?

$
0
0

Hi Carsten,

 

in such a case you can "read" the texts via the resource bundle from the model:

 

var oResourceBundle = this.getModel("i18n").getResourceBundle();
return oResourceBundle.getText("YES");

Just check SAPUI5 SDK - Demo Kit for further details.

 

Regards, Frank


Viewing all articles
Browse latest Browse all 8124

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>