Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
Hi guys. Autodetection of the current language does not work through the Browser plugin (use browser.lang). How can I implement automatic system language selection in my game?
What do you mean it doesn't work? It was always working fine on all platforms.
I do like Browser.Language = "it" > set text "Italian" but this not work on all devises and browsers, maby i need use more langs identificators for check lang? Or if you can send me exemple this will be fine. Thanks
It probably won't be just "it". Language code may will look like "en", "en-US", "fr-FR", "es-ES" etc.
You need to extract the first two letters:
Thanks, i try but this not work - can't have 2 params. Maby you can send me .c3p exemple, this will be perfect.
Sorry, here is the correct expression:
The result will be "it", "en", "fr" etc.
Develop games in your browser. Powerful, performant & highly capable.
Thank you very match!!! This works perfect in any browser for me and any devices.