translations_cleaner
Package to remove unused keys in arb files, across all translations
0.2.1
20K downloads/mo
#2203 most downloaded on pub.dev
Chinmay-KB/translations_cleaner
What this package is like to depend on
Last release 2 months ago
16 Jun 2026
Release timing varies
gaps range from 2 months to 3.1 years
Nearly every release is documented
notes for 6 of 6 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
6 releases · first in 2022
4 releases in the last 12 months
see the full history below
Release timeline
6 releases · Nov 2022 to Jun 2026
2023
2024
2025
2026
Releases
latest 6-
0.2.116 Jun 2026Release notes
Open source →- Widen
analyzerconstraint to>=8.0.0 <11.0.0so the package resolves alongsideintl_utils ^2.8.14and modern Flutter test tooling. - Migrate AST scan to the renamed diagnostic API (
diagnosticCode/DiagnosticType) sinceerrorCode/ErrorTypewere removed in analyzer 9.0.0. - Raise minimum Dart SDK to
3.9.0to match analyzer 8.x's environment constraint.
- Widen
-
0.2.010 Mar 2026Release notes
Open source →- Switched from regex to AST based searching improving search time speeds by 100x.
-
0.1.109 Mar 2026Release notes
Open source →Bug Fixes
- Handle invalid JSON in
sort-translationsso one malformed ARB file does not abort the whole command.
- Handle invalid JSON in
-
0.1.027 Dec 2025Release notes
Open source →Breaking Changes
- Dart 3.x required: Updated SDK constraint from
>=2.17.6 <3.0.0to>=3.0.0 <4.0.0 - Subpackages excluded by default: Arb files in subpackages (directories with their own pubspec.yaml) are now excluded by default. Use
--include-subpackagesor-sflag to include them.
Bug Fixes
- Fix #10: Preserve original indentation when writing arb files instead of forcing 4-space indent
- Fix #9: Handle malformed JSON in arb files gracefully with helpful error messages instead of crashing
- Fix #5: Use word boundary matching to prevent false negatives (e.g.,
restorePurchasesno longer matchesrestorePurchasesAsync) - Fix #6, #7, #11: Exclude subpackages by default to prevent false positives in monorepo setups
- Dart 3.x required: Updated SDK constraint from
-
0.0.527 Nov 2022Release notes
Open source →- Added 2 commands, for showing list of unused translations and for deleting them
- Unused translations can be exported to a
.txtfile to the desired path abortflag exits process with failure if there are any unused translations. This feature is useful for being used in CI, if the build should fail if there exists any unused translations
-
0.0.126 Nov 2022