remove_unused_localizations
A Dart package to clean unused localization keys from .arb files.
1.1.2
3.1K downloads/mo
#4577 most downloaded on pub.dev
OsamaAssaf/remove_unused_localizations
What this package is like to depend on
Last release 5 months ago
24 Mar 2026
Ships unpredictably
gaps range from 2 weeks to 11 months
Most releases are documented
notes for 8 of 11 stable releases
Nothing withdrawn
no release was ever pulled
1 years old
11 releases · first in 2025
5 releases in the last 12 months
see the full history below
Release timeline
11 releases · Mar 2025 to Mar 2026
2026
Releases
latest 11-
1.1.224 Mar 2026Release notes
Open source →- Update README to reflect version bump of remove_unused_localizations to 1.1.2 in pubspec.yaml
-
1.1.118 Mar 2026Release notes
Open source →- Breaking: Converted from Flutter package to pure Dart package. Removed Flutter SDK dependency; package now uses
testandlintsinstead offlutter_testandflutter_lints. - Fixed: Plugin now correctly detects used localization keys in multi-line chained property access (e.g.,
context.l10n.keywhen split across lines). - Fixed: Improved regex to allow optional whitespace around dots in chained access patterns.
- Fixed: Refined method-call pattern for more accurate detection of
SomeClass.method().keyusage.
- Breaking: Converted from Flutter package to pure Dart package. Removed Flutter SDK dependency; package now uses
-
1.1.008 Mar 2026Release notes
Open source →- ✨ New: Add optional
remove_unused_localizations.yamlconfig file to specify custom directories to scan for Dart files. - 📂 Supports monorepos, shared packages, and projects with Dart code outside
lib. - ⚙️ New
dart-scan-dirsoption: list of directories to scan (paths relative to project root). - 🔄 Defaults to
libwhen config is absent for backward compatibility. - 📝 Updated README with Configuration section and note about syncing with
l10n.yaml.
- ✨ New: Add optional
-
1.0.308 Mar 2026Nothing published for this version
-
1.0.203 Mar 2026Release notes
Open source →- 🐛 Fixed: Plugin no longer incorrectly removes used translations when localization keys are accessed across multiple lines (e.g.,
AppLocalizations.of(context)!.\n key). - 🔍 Detection regex now allows optional whitespace and newlines between the accessor and the key.
- 🐛 Fixed: Plugin now detects
AppLocalizations.of(Get.context!)!.key(GetX). - 🐛 Fixed: Plugin now detects null-aware access (
variable?.key,variable?.method(param)). - 🐛 Fixed: Plugin now detects method calls with parameters (e.g.,
key(type.name),key(e.toString())). - 🐛 Fixed: Plugin now detects
AppLocalizations.of(Get.context!,\n)!.key(formatted multi-line with trailing comma).
- 🐛 Fixed: Plugin no longer incorrectly removes used translations when localization keys are accessed across multiple lines (e.g.,
-
1.0.107 Apr 2025Release notes
Open source →- 📝 Updated
README.mdwith detailed usage instructions, examples, and feature descriptions. - ✅ Improved overall clarity for installation and usage on pub.dev.
- 📝 Updated
-
1.0.007 Apr 2025Release notes
Open source →- 🏁 Stable release — officially moved to version 1.0.0.
- 🚀 Improved performance: Faster scanning of .arb and Dart files.
- 🔒 Safer file handling: Improved exclusion logic for critical files.
- 🧠 Smarter key detection: Better regex accuracy for detecting used localization keys.
- 📦 Improved CLI structure: Now works properly as a CLI tool and prints output to the terminal.
- 🧪 General refactoring and stability improvements.
-
0.0.420 Mar 2025Release notes
Open source →- 🎉 Add new feature to not automatically remove unused localization keys from
libfolder (If needed).
- 🎉 Add new feature to not automatically remove unused localization keys from
-
0.0.304 Mar 2025Nothing published for this version
-
0.0.204 Mar 2025Nothing published for this version
-
0.0.104 Mar 2025Release notes
Open source →- 🎉 First version of
remove_unused_localizations. - 🛠 Automatically detects and removes unused localization keys.
- 🚀 Supports all
.arbfiles dynamically. - 🔍 Excludes important localization files to prevent accidental deletions.
- 📊 Provides detailed output on removed keys.
- 🎉 First version of