In this post:
https://www.b4x.com/android/forum/threads/how-to-get-the-device-locale.81928/post-519035
Erel shows this code to determine an Android device's default language, which I reproduce here:
If I set my device (Pixel 3) with a default language of "Francais (Canada)" this code produces "fr" instead of "fr_CA".
Does anyone have any suggestions?
Thanks in anticipation...
https://www.b4x.com/android/forum/threads/how-to-get-the-device-locale.81928/post-519035
Erel shows this code to determine an Android device's default language, which I reproduce here:
B4X:
Sub Get_Language As String
Dim jo As JavaObject
Return jo.InitializeStatic("java.util.Locale").RunMethod("getDefault", Null)
End Sub
If I set my device (Pixel 3) with a default language of "Francais (Canada)" this code produces "fr" instead of "fr_CA".
Does anyone have any suggestions?
Thanks in anticipation...
Last edited: