flutter_l10n

Last updated:

0 purchases

flutter_l10n Image
flutter_l10n Images
Add to Cart

Description:

flutter l10n

flutter_l10n #

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 #


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


Register in MaterialApp/WidgetsApp:


MaterialApp(
localizationsDelegates: [
S.delegate,
GlobalMaterialLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
],
);
copied to clipboard

Reference strings by S.of(context).helloWorld or S.current.helloWorld.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.