Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8914

Combining i18n translations with variables

$
0
0

Hello experts!

 

I would like to combine an i18n placeholder with a variable like this:

 

var error = "blabla";
...
var text = "{i18n>ERRORTEXT}"+": " + error;
console.log(text);

Current result:

{i18n>ERRORTEXT}: blabla

Desired result:

An error occured: blabla

 

Does anybody know how I can change my code to bring UI5 to interpret the i18n placeholder?

 

Best, Silvia


Viewing all articles
Browse latest Browse all 8914


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