Having lots of localisation files to manage can be quite tedious, especially for larger projects. This package aims to make that management easier. The manager will export all of your localisation files into one manageable CSV. This CSV can then be distributed between your translators and once your translations are complete, you can use the manager to rebuild your localisations files straight back into your Flutter project.
After cloning the package. Navigate to the package directory and create the executable.
dart2aot bin/main.dart bin/main.dart.aot
Then activate the executable file globally
pub global activate --source path path/to/flutterl10nmanager
The export command looks at you Flutter projects internationalisation directory and builds a single CSV containing all of your localisations as defined in
intl_messages.arb and all of the corisponding language values from your
flutterl10nmanager export path/to/flutter/l10n/dir -o optional/output/file.csv
The create command takes a csv which was generated by the
export command and creates an internationalisation arb file for each language specifed in the csv.
flutterl10nmanager create path/to/export.csv -o optional/output/dir
You can install the package from the command line:
$ pub global activate flutterl10nmanager
The package has the following executables:
Add this to your package's pubspec.yaml file:
dependencies: flutterl10nmanager: ^1.0.1
You can install packages from the command line:
$ pub get
$ flutter pub get
Alternatively, your editor might support
pub get or
flutter pub get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
import 'package:flutterl10nmanager/commands/create.dart'; import 'package:flutterl10nmanager/commands/export.dart'; import 'package:flutterl10nmanager/entities/localisation.dart'; import 'package:flutterl10nmanager/helpers.dart'; import 'package:flutterl10nmanager/manager.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Aug 21, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter, other
Platform components identified in package:
Maintain an example. (-10 points)
Create a short demo in the
example/ directory to show how to use this package.
Common filename patterns include
flutterl10nmanager.dart. Packages with multiple examples should provide
For more information see the pub package layout conventions.