I'm tyring to set a default language for my game and I would like it to be the phone's language, the question is: how can I get the phone's language?
In my last game I used the default locale of the JVM:
java.util.Locale.getDefault().toString();
to get the device language. That seemed to work fine for Android as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With