arb_generator
0.1.0, released 6 months ago by defuncart.com
Generate ARB localization files from CSV files.
What it does
A Dart tool that reads localization strings from CSV files and outputs them into Flutter-compatible ARB format files. It supports ICU message syntax, plurals, selects, descriptions, and optional placeholder metadata.
AI-written summary of version 0.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You prefer managing translations in spreadsheet tools or CSV format.
- You want to feed generated ARB files into the official Flutter intl localization pipeline.
Skip it when
- You manage localization files directly as ARB, JSON, or YAML without a CSV intermediary.
- You want a fully-featured runtime localization framework rather than just a conversion script.
Strengths
- Simplifies working with translators who use CSV spreadsheets.
- Supports ICU placeholders, plurals, and select rules.
- Compatible with the standard Flutter intl localization system.
Weaknesses
- Requires a separate CSV conversion step during development.
- Limited to file conversion rather than full in-app runtime translation management.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 4
Add as a dev dependency, configure settings in pubspec.yaml, and run via dart run arb_generator.
arb_generator:
input_filepath: "assets_dev/test.csv"
output_directory: "lib/l10n"Alternatives
Packages that do the same job and could replace arb_generator.
- slang
If you want a type-safe localization solution using JSON/YAML files instead of generating ARB files.
90Compare - easy_localization
If you prefer loading translation files directly at runtime without code generation.
64Compare
Works with
Packages commonly used together with arb_generator: ones it builds on, ones built on it, and its own family.