Hi Ingo,
Constants are fixed and don't change based on the langauge of the user. They ‘live’ in as environment variables on the server level, and not in a user context.
I think the best solution is to build this custom, by creating an entity named something like ‘Translations’ with three attributes:
- Locale (enumeration with languages you want to support)
- Key (enumeration with values for all the fields you want translated)
- TranslatedText (string)
You can then generate the objects and the translations, or make them managable from within the application. Or you can make a excel upload for it.
Then when you need a translation do a retrieve on the Translations table, with the locale that matches the user language, the key and display the translated text.
Hope this helps.
I hope this write up is still relevant to your usecase: https://medium.com/p/ae6c7ec35dee