I m试图遵循以下国际化文件:;https://flutter.dev/docs/development/accessibility-and- localization/internationalization#dart-tools” rel=“noretinger”>https://flutter.dev/docs/development/accessibility-and- localization/internationalization#dart-tools和
Basically it says to make these mods to the pub 然后创建 最后,创建<代码>app_en.arb,其中类似内容: 指南中还指出: 除非发生任何情况。 I m在Series工作,并填写了 任何想法?spec.yaml
file:dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
intl: ^0.17.0-nullsafety.2
flutter:
generate: true
<project-root>/l10n.yaml
。 载有:arb-dir: lib/l10n
template-arb-file: app_en.arb
output-localization-file: app_localizations.dart
{
"@@locale": "en",
"helloWorld": "Hello World!",
"@helloWorld": {
"description": "The conventional newborn programmer greeting"
}
}
flutter_gen/gen_l10n/app_ localizations.dart
。 档案将自动生成。pub
,并尝试了flutter Clean
和 flutter Building ios
,而我可以想象的所有其他事情,但没有任何东西在建立这一档案。
In php (or maybe gettext in general), what does gettext do when it sees a variable to dynamic content? I have 2 cases in mind. 1) Let s say I have <?=$user1?> poked John <?=$user2?>. ...