cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

localization token with placeholder ?

seanccc
17-Peridot

localization token with placeholder ?

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

1 ACCEPTED SOLUTION

Accepted Solutions

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

 

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

View solution in original post

1 REPLY 1

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

 

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