Skip to content

Health-Circuit/flutterl10nmanager

Repository files navigation

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.

dart compile aot-snapshot bin\main.dart -o bin\main.aot

Then activate the executable file globally

dart pub global activate --source path c:\Jordi\HealthCircuit\projects\flutterl10nmanager\

Commands

export

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 intl_<locale>.arb files.

example usage:

flutterl10nmanager export path/to/flutter/l10n/dir -o optional/output/file.csv

create

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.

example usage:

flutterl10nmanager create path/to/export.csv -o optional/output/dir
flutterl10nmanager create "c:\Jordi\HealthCircuit\Translations\tr_web_utf8.csv" -o c:\Jordi\HealthCircuit\Translations\output\web
flutterl10nmanager create "c:\Jordi\HealthCircuit\Translations\tr_mobile_utf8.csv" -o c:\Jordi\HealthCircuit\Translations\output\mobile

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages