Wrong Language using Localization Tool

Hey hey :slight_smile:

I’m trying to implement the localization tool und I’m currently having the problem, that I’m seeing my game in the wrong language. I tried looking through the source code of the engine, but I couldn’t find the place, where the browsers locale gets fetched and used for deciding on which language to use. So I’m wondering, is playcanvas not doing this by default? Do I have to set the local myself?

Thanks

Looks like it gets set as en-US as default.

The API to change it can be seen here: https://developer.playcanvas.com/en/api/pc.I18n.html#locale

Running into this too. It’s sad that if our browser is defined with a support languaged, the language is not automatically setup.
Via the editor we should be able to select the default language, and if our game supports the same language than the browser, it should just switch.