Skip to main content
Dec 5, 2023 10:38 AM UTC
Solved

How to convert 'Localization Table: Default' to other languages when changed language from runtimeDD

I have 100 token created in Localization Table: Default', Now I want to convert and see in runtime whenever changed languages from dropdown in runtime.

 

Please suggest my any service or code which should convert to other languages automatically

nmillesonAnswer
Dec 5, 2023 2:20 PM UTC

@MM_10159448 ,

 

You'll need to add the translation values in each of those languages.  It does not do the translation for you.  I would suggest using a service like Google Translate.  Then open each language localization table you'd like to support and enter those values

 

 

- Nick

4 replies

Dec 5, 2023 12:39 PM UTC

@MM_10159448 ,

 

I would suggest creating a service that changes the language preferences of your user to whichever language you choose in the dropdown.  You may need to refresh the page. You can use this service:

Users["myUser"].SetLanguagePreferences({
	preferences: newLanguage /* STRING */
});

 

Hope that helps

- Nick

Dec 5, 2023 2:07 PM UTC

Hi Nick,

 

Thank you for your reply,

This Service, I am already using but the problem is.

I have added some new token in default as below

MM_10159448_0-1701784140454.png

I have selected language in runtime from Dropdown list, refreshed browser and verified but its not converted in other languages.

MM_10159448_1-1701785075616.png

Please let me know what is the issue?

 

nmillesonAnswer
Dec 5, 2023 2:20 PM UTC

@MM_10159448 ,

 

You'll need to add the translation values in each of those languages.  It does not do the translation for you.  I would suggest using a service like Google Translate.  Then open each language localization table you'd like to support and enter those values

 

 

- Nick