ilteoood / flutter_i18n

I18n made easy, for Flutter!
MIT License
217 stars 57 forks source link

Translations not working on iOS 14 #132

Closed freddy-nawfal closed 3 years ago

freddy-nawfal commented 4 years ago

As mentioned in the title, I noticed that the translations do not work since I upgraded to iOS 14. Nothing else has changed code-wise. The only translation that actually works is the base one (fallbackFile: "en").

Here is my flutter doctor for reference:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.22.0, on Mac OS X 10.15.7 19H2, locale fr-FR)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 12.0.1)
[✓] Android Studio (version 3.6)
[✓] VS Code (version 1.49.3)
[✓] Connected device (1 available)

And here is the version of the plugin that I'm using: flutter_i18n: ^0.19.4

ilteoood commented 4 years ago

Hi, did you tried with: https://flutter.dev/docs/development/accessibility-and-localization/internationalization#appendix-updating-the-ios-app-bundle

An example of the content can be:

<key>CFBundleLocalizations</key>
<array>
    <string>en</string>
    <string>nb</string>
</array>
freddy-nawfal commented 3 years ago

Thanks, it works but I also had to add the "supportedLocales" parameter in the MaterialApp with the list of all supported languages.