Skip to main content
17-Peridot
July 18, 2019
Solved

localization token with placeholder ?

  • July 18, 2019
  • 1 reply
  • 905 views

Hi ,

Can I set a localization token string with placeholder ?  like:  "The data is empty for the device {0}"  , {0} is the placeholder of the device name .  Then I can call the service of RuntimeLocalizationFunctions to get the complete string value. 

 

I didn't find where to set the placeholder and the resource entity RuntimeLocalizationFunctions  seems doesn't has service to getting token with placeholder , either. 

 

Do I have to implement the feature by myself ? 

 

Regards,

Sean

Best answer by CarlesColl

There's not OOTB feature for that. But almost you don't need it, just to it in Javascript:

 

myLocalizedToken.replace("{0}",desiredValueString);

1 reply

1-Visitor
July 18, 2019

There's not OOTB feature for that. But almost you don't need it, just to it in Javascript:

 

myLocalizedToken.replace("{0}",desiredValueString);