website
website copied to clipboard
Internationalization doc is unclear
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
In the section titled "Setting up an internationalized app: the Flutter_localizations package" after initial import of the dependencies and adding localizationDelegates/supportedLocales for your MaterialApp the following information leads a user to believe no further translation files are required translation to actually take place: "After introducing the flutter_localizations package and adding the previous code, the Material and Cupertino packages should now be correctly localized in one of the 115 supported locales. Widgets should be adapted to the localized messages, along with correct left-to-right or right-to-left layout.
Try switching the target platform's locale to Spanish (es) and the messages should be localized." ,<= seems to indicate translations should be occurring.
In my experience, after following these steps and changing the target platform locale to Spanish, the text in my app (which is currently just the counter sample provided by flutter) has not changed to Spanish. I've also tried to change the Language/Region settings on my iOS device to Spanish as well, but the text is still not translating.
Expected fix
Resolve expectations set forth in the documentation. Add clarification if, at this point in the tutorial/documentation, translations should actually be occurring OR specify the required files that are needed to further map language translations.
Additional context
iOS device, using MaterialApp widget and basic Counter sample app provided when creating a new flutter project in Android Studio
I would like to fix this problem.
- [ ] I will try and fix this problem on docs.flutter.dev.