Skip to content
pubscout

remove_unused_localizations

1.1.2, released 8 months ago by an unverified publisher

Detects and removes unused localization keys from .arb files.

$ flutter pub add remove_unused_localizations
Source repository

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_localizations

Alternatives

Packages that do the same job and could replace remove_unused_localizations.

Works with

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