Hello, I am developing an website, however, the tutor asked me to realize the switch function between German and English, I would like to know how to achieve it?
Thinking
Needle in Unity
You could use google translate to automatically translate the UI automatically (if it’s HTML UI).
Otherwise, if you’re using e.g. Text components you can set the text on the component in the appropriate language from your script.
E.g.
const myTextComponent = this.gameObject.getComponent(Text);
if(myTextComponent) myTextComponent.text = "new Text";
For example, if I’m using the unity button, I need the text on the button to be able to switch languages, and I also need the menu on the Needle button to be able to switch languages, such as AR mode or joining rooms