FLUTTER:多屏应用程序的本地化 [英] FLUTTER: Localization of a multi-screen app
问题描述
我正在使用Flutter在android上创建一个多屏应用.
我正在使用intl对其进行本地化,但是我不明白如何继续创建arb文件.我应该运行以下逗号吗
flutter pub pub run intl_translation:extract_to_arb --output-dir=lib\l10n lib\main.dart
我的应用程序的每个页面/活动/片段"命令?
i'm creating a multi screen app on android using Flutter.
I'm using intl to localize it, but i don't understand how to procede to create the arb file. Should i run the following commaand
flutter pub pub run intl_translation:extract_to_arb --output-dir=lib\l10n lib\main.dart
command for every "page/activity/fragment" of my app?
推荐答案
您是否要实现应用内本地化?即仅更改应用的语言环境,而不受手机的语言环境影响?然后,您可以参考此博客: https://blog.geekyants.com/flutter-in-app-localization-438289682f0c
Are you trying to implement in-app localization? i.e. just changing the app's locale without it being affected by the phone's locale? Then you can refer to this blog: https://blog.geekyants.com/flutter-in-app-localization-438289682f0c
结果看起来像这样:
这篇关于FLUTTER:多屏应用程序的本地化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!