flutter_l10n 0.1.3 flutter_l10n: ^0.1.3 copied to clipboard
Simple cmd tools for Flutter localazitions. It can generate localazition codes from arb files by one cmd.
flutter_l10n #
Flutter localizations.
Getting Started #
Install #
dev_dependencies:
...
flutter_l10n: '^0.1.3'
Usage #
-
Generate
S.dart
file from*.arb
files.
flutter pub run flutter_l10n:build
. -
Register in
MaterialApp
/WidgetsApp
:
MaterialApp(
localizationsDelegates: [
S.delegate,
],
);
- Reference strings by
S.of(context).***
.