How to translate value from thing Dynamically

Hi Team,

I have a Table as shown below. This data is coming from a table called comments table. For left side marked values have translations in language resource file.
I want to dynamically translate these values while rendering the table, based on the user’s selected language.


Any ideas would be helpful.

What do you mean by language resource file? A CSV-like file uploaded to the file manager?

App Texts

OK, you have App Texts translations.

So, elements in the column Paso anterior are not coming from the Comments table? They are App Texts?

No, Not app texts, those values(elements) in column Paso anterior are coming from comments table.

Got it. No clue why you mentioned the App Texts then, could you clarify?

If you were trying to get some translation functionality leveraging App Texts, it won’t serve in your case. App Texts are only for “hardcoded” text. In your use case you are showing dynamic text that comes from DB.

You have two options:

  • Save text in different languages in the record itself. You’ll need to define columns with an appended language ISO-code, e.g. previous_step_ES-es, previous_step_EN-us and decide which one to show based on a conditional.

  • Dynamically translate it with API Calls to a third-party translation service