Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wamphlett/flutterl10nmanager
A package to help manage multiple languages in a Flutter project
https://github.com/wamphlett/flutterl10nmanager
console-application dart flutter i18n internationalization l10n l10n-helper
Last synced: about 3 hours ago
JSON representation
A package to help manage multiple languages in a Flutter project
- Host: GitHub
- URL: https://github.com/wamphlett/flutterl10nmanager
- Owner: wamphlett
- License: bsd-3-clause
- Created: 2019-07-15T13:34:48.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-16T19:33:57.000Z (over 5 years ago)
- Last Synced: 2024-11-15T06:49:11.100Z (4 days ago)
- Topics: console-application, dart, flutter, i18n, internationalization, l10n, l10n-helper
- Language: Dart
- Homepage: https://pub.dev/packages/flutterl10nmanager
- Size: 126 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.## Install
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
```## Commands
### `export`
The [export command](https://github.com/wamphlett/flutterl10nmanager/blob/master/lib/commands/export.dart) looks at you Flutter projects internationalisation directory and builds a single CSV containing all of your localisations as defined in [`intl_messages.arb`](https://flutter.dev/docs/development/accessibility-and-localization/internationalization#appendix-using-the-dart-intl-tools) and all of the corisponding language values from your `intl_.arb` files.example usage:
```
flutterl10nmanager export path/to/flutter/l10n/dir -o optional/output/file.csv
```### `create`
The [create command](https://github.com/wamphlett/flutterl10nmanager/blob/master/lib/commands/create.dart) takes a csv which was generated by the `export` command and creates an internationalisation arb file for each language specifed in the csv.example usage:
```
flutterl10nmanager create path/to/export.csv -o optional/output/dir
```