Flutter L10N Manager #
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
- Initial version with
- Code formatting
- Install documentation
Use this package as an executable
1. Install it
You can install the package from the command line:
$ pub global activate flutterl10nmanager
2. Use it
The package has the following executables:
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: flutterl10nmanager: ^1.0.1
2. Install it
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.
3. Import it
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 Oct 21, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.5.1
- pana: 0.12.21
Detected platforms: Flutter, other
Platform components identified in package:
Maintenance issues and suggestions
Support latest dependencies. (-10 points)
The version constraint in
pubspec.yaml does not support the latest published versions for 1 dependency (
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.