json_to_arb 0.1.0 copy "json_to_arb: ^0.1.0" to clipboard
json_to_arb: ^0.1.0 copied to clipboard

A Dart package to convert JSON localization files to ARB format.

json_to_arb #

A Dart command-line tool to convert multiple JSON localization files into ARB files for Flutter internationalization.

Usage #

  1. Add your JSON files
    Organize your localization files by language, e.g.:

    lib/l10n/en/app.json
    lib/l10n/ar/app.json
    
  2. Configure your project
    In your pubspec.yaml, add:

    arb_directories:
      source: lib/l10n
      output: lib/l10n/app_arb
      locales:
        - en
        - ar
        ... other locals
    
  3. Run the converter
    Execute the tool from your project root:

    dart run json_to_arb
    

    This will generate ARB files in the output directory.

Output #

  • ARB files will be created for each language, e.g.:
    lib/l10n/app_arb/app_en.arb
    lib/l10n/app_arb/app_ar.arb
    

Notes #

  • Errors and warnings are printed in color for easy debugging.
0
likes
0
points
71
downloads

Publisher

verified publisherkaramdev.me

Weekly Downloads

A Dart package to convert JSON localization files to ARB format.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, yaml

More

Packages that depend on json_to_arb