intl_utils_formatter
1.0.1, released 3 years ago by dholasain.com
A command-line utility to sort and format .arb localization files in Flutter projects.
$ flutter pub add intl_utils_formatterWhat it does
It reads specified .arb files from your pubspec.yaml configuration and formats them in ascending order along with their metadata keys. Developers can run a single command to maintain consistency and standardization across their localization files.
AI-written summary of version 1.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to keep your .arb localization files sorted and consistently formatted
- You use intl_utils and need a clean way to organize translation keys
Skip it when
- You use an all-in-one localization package like slang or easy_localization that manages its own workflows
- You prefer manual sorting of translation files
Strengths
- Simplifies .arb file management with a single CLI command
- Easy configuration directly within pubspec.yaml
Weaknesses
- Very narrow scope focused solely on sorting and formatting .arb files
- Not an alternative to a full localization library
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Add as a development dependency and configure file paths under the intl_utils_formatter key in your pubspec.yaml.
intl_utils_formatter:
files:
- lib/l10n/intl_en.arb
- lib/l10n/intl_ur.arb
# Run command:
# dart run intl_utils_formatter:formatAlternatives
Packages that do the same job and could replace intl_utils_formatter.
- slang
Type-safe i18n solution generating Dart translation classes from JSON, YAML, CSV, or ARB files
90Compare - flutter_arb_translator
A command line tool to automatically translate Flutter ARB localization files using various APIs.
71Compare - arb_generator
Generate ARB localization files from CSV files.
52Compare - translations_cleaner
Command-line tool to find, delete, and sort unused translations in .arb files.
65Compare
Works with
Packages commonly used together with intl_utils_formatter: ones it builds on, ones built on it, and its own family.