website
website copied to clipboard
How to track the device's locale
Page URL
https://docs.flutter.dev/ui/accessibility-and-internationalization/internationalization/
Page source
https://github.com/flutter/website/tree/main/src/content/ui/accessibility-and-internationalization/internationalization.md
Describe the problem
This page declares it will teach one "How to track the device's locale".
It is comprehensive, and teaches many things, but it doesn't seem to teach that. In particular, if you switch the phones locale, the app's Locale object does not track the device's locale. It only seems to do so if I actually support the locale in the supportedLocales section.
So it's quite misleading. I really want to know the app's locale, and apparently I have to use an external package like https://pub.dev/packages/devicelocale to do so.
Expected fix
Either fix the locale system to let one determine the locale, even if no translations are available, or don't promise to teach how to track the app's locale and be explicit about the severe limitations.
Additional context
No response
I would like to fix this problem.
- [ ] I will try and fix this problem on docs.flutter.dev.