Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local always "en" (Android/iOS) #1189

Open
FlorianKirmaier opened this issue Nov 23, 2022 · 5 comments
Open

Local always "en" (Android/iOS) #1189

FlorianKirmaier opened this issue Nov 23, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@FlorianKirmaier
Copy link

I've just noticed, that the language detection no longer works.
I'm quite sure it worked before GraalVM was used.

When I call Locale.getDefault i always get back the locale "en", even if I set my device to German.

This happens on Android and iOS.

Is this a known issue?
Is there another way to get the locale of the device?

("com.gluonhq:gluonfx-gradle-plugin:1.0.16" was used)

@FlorianKirmaier FlorianKirmaier added the bug Something isn't working label Nov 23, 2022
@jperedadnr
Copy link
Contributor

See gluonhq/gluonfx-maven-plugin#389 ?

@FlorianKirmaier
Copy link
Author

Thank you for the quick response.

I'm a bit confused. This is not about adding the correct resources,
The issue is that Local.getDefault always return "en".

Do the changes suggested in the other ticket, not just influence, which kind of resources are added?
I've already got the correct resources in my project.

Or do they also change, which value Local.getDefault can return?

@javateer
Copy link

javateer commented Dec 14, 2022

I want to confirm this. When I change my phone's default settings as if I am a non-english speaker from another country, I still get the same en default reply. In order for me to internationalize my app, I will have to ask the User again in my app's own Settings what i18n value do they prefer the app operates in among its available resource files. It would be better if we could use what the User has already set at the phone's OS level instead of our app asking them again.

@FlorianKirmaier
Copy link
Author

Any news about this?
I think it's quite an important feature to detect the Language of the user.

@jperedadnr
Copy link
Contributor

There is a new issue in GraalVM about this topic: oracle/graal#8295, proposing a possible solution and a roadmap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants