flutter_l10n 1.0.1 copy "flutter_l10n: ^1.0.1" to clipboard
flutter_l10n: ^1.0.1 copied to clipboard

A dart library that generates Flutter localization code from ARB file.

flutter_l10n #

Pub Version (including pre-releases)

A dart library that generates Flutter localization code from ARB file.

This library is an extension of official Flutter localizations. You can refer to πŸ‘‰hereπŸ‘ˆ to config the flutter_l10n.yaml.

Online demo

Features #

  • Compatible with official APIs.
  • Support multiple packages/modules.
  • Support using without context.

Getting Started #

Install / Update #

dart pub global activate flutter_l10n

Usage #

  1. Generate S.dart file from *.arb files in your project directory by running: flutterl10n.

  2. Register in MaterialApp/WidgetsApp:

MaterialApp(
  localizationsDelegates: [
    S.delegate,
    GlobalMaterialLocalizations.delegate,
    GlobalCupertinoLocalizations.delegate,
    GlobalWidgetsLocalizations.delegate,
  ],
);
  1. Reference strings by S.of(context).helloWorld or S.current.helloWorld.
2
likes
0
pub points
25%
popularity

Publisher

unverified uploader

A dart library that generates Flutter localization code from ARB file.

Repository (GitHub)
View/report issues

Topics

#localization #internationalization #l10n #i18n #arb

License

unknown (LICENSE)

Dependencies

dart_style, file, intl, meta, path, yaml

More

Packages that depend on flutter_l10n