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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

How can I get a single service to convert all the labels to desired language?

esanigupta
2-Explorer

How can I get a single service to convert all the labels to desired language?

Hi,

 

I have a label in the mashup and I also have a drop down in the same mashup from where I can select the languages I want to label to be converted to. Eg. - If i selected 'de' in the dropdown the label should be changed to German language. Now for this I created a service which will take language(lang) as input and the result is the converted label : 

 

var params = {
language: lang /* STRING */,
token: 'Test_GoodMorning' /* STRING */
};

// result: STRING
var result = Resources["RuntimeLocalizationFunctions"].GetEffectiveTokenForLanguage(params);

 

This service works for one label. But I have 11 labels in the same screen. How can I write one service to convert all the labels?

 

@Charles Can you help with this?

 

Thanks in advance

1 REPLY 1

Hi @esanigupta ,

 

Please go through the below article for changing the language:

https://www.ptc.com/en/support/article?n=CS248583&posno=2&q=language&ProductFamily=ThingWorx&source=search

 

Regards,

Shashank

Announcements


Top Tags