remove_unused_localizations_keys 0.0.11 copy "remove_unused_localizations_keys: ^0.0.11" to clipboard
remove_unused_localizations_keys: ^0.0.11 copied to clipboard

A Flutter package to clean unused localization keys from .arb files.

build

🗑️ Remove Unused Localization Keys #

Pub Version

A powerful Flutter package to identify and remove unused localization keys from your project, ensuring cleaner and more efficient .arb files.


🚀 Features #

✅ Scans your localization files and detects unused keys. ✅ Provides an interactive option to remove them automatically. ✅ Supports multiple language files. ✅ Keeps your project lightweight and optimized.


📦 Installation #

Add the package to dev_dependencies in pubspec.yaml:

dev_dependencies:
  remove_unused_localizations_keys: latest

Then, fetch dependencies:

flutter pub get

🔧 Usage #

Run the following command to analyze your project:

dart run remove_unused_localizations_keys

🛠 Advanced Options #

Option Description
--keep-unused Simulates the process without deleting any keys.
-- Runs without requiring user confirmation.

Example:

dart run remove_unused_localizations_keys --keep-unused

💡 Example Output #

🔍 Scanning localization files...
✅ Unused keys found:
  - home.welcome_message
  - settings.dark_mode

❓ Do you want to remove these keys? (y/N)

📊 Accuracy Testing Methodology #

We tested against three real-world Flutter projects with known unused keys:

🔍 Test Projects #

Project Total Keys Known Unused Language Files
🛒 E-commerce 1,242 87 4 (en, ar, fr, de)
📱 Social App 3,587 214 6 (en, es, pt, ru, ja, zh)
🏢 Enterprise 8,921 532 12 (multi-region)

⚡ Performance Benchmarks #

🚀 Speed Comparison (Lower is Better) #

Speed Benchmark

💾 Memory Efficiency #

Memory Usage


🎯 Roadmap #

🚀 Upcoming Features:

  • ❌ Support for easy_localization
  • ❌ Seamless CI/CD integration
  • ❌ Auto-fix feature to replace similar keys

🤝 Contributing #

We welcome all contributions! Feel free to submit issues, feature requests, or pull requests. 🙌


📬 Contact #

📩 Need help? Reach out at [AbdelrahmanTolba@protonmail.com] or open an issue on GitHub.


📜 License #

📄 This project is licensed under the MIT License.

16
likes
0
points
1.16k
downloads

Publisher

verified publisherabdelrhmantolba.online

Weekly Downloads

A Flutter package to clean unused localization keys from .arb files.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

yaml

More

Packages that depend on remove_unused_localizations_keys