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
Develop games in your browser. Powerful, performant & highly capable.
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:
lowercase(left(Browser.language),2)="it"
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:
lowercase(left(Browser.language,2))
The result will be "it", "en", "fr" etc.
Thank you very match!!! This works perfect in any browser for me and any devices.
ufile.io/uhnk3s0q