When initializing Modeler, a language has already been set. How can I dynamically switch the display language now? For example, en ->fr, fr ->en
It’s not possible to change the language after initialization. Within your custom translate you’d need a switch and also retrigger the rendering of all parts of the UI that have translatable text. That’s not supported out of the box.
Is there a general implementation method or steps?
You can indicate that the language changed via i18n.changed()
.
This will trigger UI updates on a best effort basis.
Do you need to redo Modeler ()? I have already initialized Modeler and initialized a language in it. Now I need to dynamically switch to another language.