remove_unused_localizations_keys
0.0.40, released 2 years ago by abdelrahman-abdelsalam-tolba.online
Command-line tool to identify and clean unused localization keys from ARB files.
What it does
Scans Flutter project files to detect unused localization keys within .arb translation files. Provides interactive or automated options to remove them and supports easy_localization patterns.
AI-written summary of version 0.0.40, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to clean up unused translation keys from ARB files
- Your project uses Flutter's built-in localization or easy_localization
Skip it when
- You need automated CI/CD checks for unused keys (not yet documented)
- You use localization packages other than built-in or easy_localization
Strengths
- Supports multiple language files and custom paths
- Handles both Flutter built-in localization and easy_localization patterns
- Offers safety flags like --keep-unused to simulate deletion
Weaknesses
- CI/CD integration is listed as an upcoming feature in the roadmap
- Limited to specific supported localization formats
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Add to dev_dependencies in pubspec.yaml and run via dart run.
dart run remove_unused_localizations_keysAlternatives
Packages that do the same job and could replace remove_unused_localizations_keys.
- remove_unused_localizations
Detects and removes unused localization keys from .arb files.
52Compare - slang
Type-safe i18n solution generating Dart translation classes from JSON, YAML, CSV, or ARB files
90Compare - translations_cleaner
Command-line tool to find, delete, and sort unused translations in .arb files.
65Compare - flutter_arb_translator
A command line tool to automatically translate Flutter ARB localization files using various APIs.
71Compare
Works with
Packages commonly used together with remove_unused_localizations_keys: ones it builds on, ones built on it, and its own family.