Skip to content
pubscout

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.

$ flutter pub add remove_unused_localizations_keys
Source repository

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_keys

Alternatives

Packages that do the same job and could replace remove_unused_localizations_keys.

Works with

Packages commonly used together with remove_unused_localizations_keys: ones it builds on, ones built on it, and its own family.