merge_l10n

Last updated:

0 purchases

merge_l10n Image
merge_l10n Images
Add to Cart

Description:

merge l10n

Merge l10n files together #
Command line tool to merge .arb files into single one
For now tool will search .arb files in lib/ folder and place result in l10n/ folder
dart run merge_l10n
copied to clipboard
will output and file with merged content will be created
Building package executable...
Built merge_l10n:merge_l10n.
intl_es: Successfully merged 4 keys from 2 files
intl_en: Successfully merged 4 keys from 2 files
copied to clipboard
Collisions #
If there is key duplicates in same language files then tool will output problem keys and duplicate locations
Invalid argument(s): Key collision occured
intl_es: `cart__title` was duplicated in:
File: 'lib/features/products/presentation/l10n/intl_es.arb'
File: 'lib/features/cart/presentation/l10n/intl_es.arb'

intl_es: `products__title` was duplicated in:
File: 'lib/features/products/presentation/l10n/intl_es.arb'
File: 'lib/features/cart/presentation/l10n/intl_es.arb'

intl_en: Successfully merged 4 keys from 2 files
copied to clipboard
TODO #

Auto scoping - define module scope and generate keys with prepended part from module scope.
Use AST trees to print more detailed errors

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.