Action to get system language


#1

It would be useful to make multi language games that would set language automatically based on the system language.
The twist is, at the moment I would need such feature in HTML5 running on Android in first place.

I was google it how to get system language on Android through Javascript, but the only thing I’ve found is that how the get language of the browser and it seems to be not reliable as it returns always english in Webview and Canvas+ :frowning:
The only solution I’ve found that works on ‘most’ devices is Cordova Globalization plugin:
github.com/apache/cordova-plugin-globalization

But to be honest I have no idea how to install this my self and how to use Javascript to get system language using the plugin in GDevelop :frowning:


#2

Can I bump this?
I localized my game in six languages, and I would like to load the user’s system language automatically.