How to translate pluggable react widget (Multilingual App)

0
We are building custom widget using react but how can we localize the hardcoded text/messages inside the widget. How can we get Locale inside react widget.
asked
2 answers
1

Not really a Mendix question but more a react question. There are some blogs about this subject like this one: https://phrase.com/blog/posts/localizing-react-apps-with-i18next/ or this one: https://www.brihaspatitech.com/blog/how-to-localize-react-js-web-app/

Regards,

Ronald

 

answered
1

The current Mendix session locale is available at:

mx.session.sessionData.locale.code

Here on the forum that code returns ‘en_US’ for me.

answered