flutter_localisation 1.0.2 copy "flutter_localisation: ^1.0.2" to clipboard
flutter_localisation: ^1.0.2 copied to clipboard

A command-line tool for generating localization files for different flavors.

Flutter Localization Tool #

This project is a Dart-based localization tool tailored for Flutter Localization SaaS users. It handles ARB files and generates the corresponding Dart localization classes efficiently.


Installation #

  1. Clone the repository:

git clone https://github.com/your-repo/flutter-localisation.git
cd flutter-localisation

  1. Install Dart and Flutter dependencies:

dart pub get
flutter pub get


Usage #

Running the Localization Tool #

To generate localization files for a specific flavor, run the following command:

dart run bin/flutter_localisation.dart

Example:

dart run bin/flutter_localisation.dart lib/l10n test_flavor

Key Steps #

  1. Create ARB Files:
    Add localization ARB files in the relevant flavor folder (e.g., lib/l10n/test_flavor/app_en.arb).

  2. Ensure flutter: generate: true in pubspec.yaml:
    Add the following section in your pubspec.yaml:

flutter:
generate: true

1
likes
0
points
175
downloads

Publisher

unverified uploader

Weekly Downloads

A command-line tool for generating localization files for different flavors.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

logging

More

Packages that depend on flutter_localisation