remove_unused_localizations
1.1.2, released 8 months ago by an unverified publisher
Detects and removes unused localization keys from .arb files.
What it does
Scans Dart files in project directories to detect used localization keys, then automatically removes unused keys from .arb files or reports them.
AI-written summary of version 1.1.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to clean up unused localization keys across multi-language .arb files
- You work in a monorepo or standard project and need to scan custom directories for localization usage
Skip it when
- You dynamically construct localization keys at runtime that static analysis cannot detect
Strengths
- Supports multiple languages and global localization variables
- Configurable dart scan directories for monorepos
- Prevents false deletions by safely excluding core localization files
Weaknesses
- Relies on static regex analysis which might miss heavily obfuscated dynamic key lookups
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Add to dev_dependencies and run via dart run remove_unused_localizations.
dart run remove_unused_localizationsAlternatives
Packages that do the same job and could replace remove_unused_localizations.
- remove_unused_localizations_keys
Command-line tool to identify and clean unused localization keys from ARB files.
49Compare - 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: ones it builds on, ones built on it, and its own family.