admin管理员组文章数量:1123030
It works on ios. So in ios you can change an apps language if it supports multiple ones. In android i believe you can do this too (google says so). I have setup my project with flutters l10n localization. Depending on the system language the app is either in german or english. this works. however on my iphone simulator i can switch the preferred app language in the settings after adding the second language in my project. On my android emulator i cannot do this. For other pre-installed apps there is an language option tho. (I followed this: /ui/accessibility-and-internationalization/internationalization)
I already tried adding a second language by adding some xml files in my android build folder, didnt work either.
l10n.yml
arb-dir: lib/l10n
template-arb-file: app_en.arb
output-localization-file: app_localizations.dart
pubspec.yml
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
intl: any
Target android version: 33 (Simulator version: 34) Flutter version: 3.16.7
This is the exact setting im searching for (first settings options for calendar app on android simulator, second beeing my flutter apps settings on an iphone)
本文标签: Flutter App Localization enable Language switching for AndroidStack Overflow
版权声明:本文标题:Flutter App Localization enable Language switching for Android - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736542180a1944398.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论