Flutter 应用程序本地化不适用于 iOS

Flutter app localization does not work on iOS

我使用自己的解决方案来本地化我的 flutter 应用程序,它在 Android 上运行良好。但是,在 iOS 中,该应用程序始终为英语,并且不会将其语言更改为设备语言。 我在我的应用程序中使用的系统如下:

class MyLocalization {
  MyLocalization(this.locale);

  final Locale locale;

  static MyLocalization of(BuildContext context) {
    return Localizations.of<MyLocalization>(context, MyLocalization);
  }
  String get homeButton => _translation(const {
    'en': 'english',
    'de': 'Deutsch',
  });

  String _translation(Map<String, String> translations) {
    return translations[locale.languageCode] ?? translations['en'] ?? "!!!MISSING TEXT!!!";
  }
}

iOS 忽略这个。我该如何解决这个问题?

打开 link Appendix: Updating the iOS app bundle 一直滚动到最后,您会发现需要进行的一些设置