translations_cleaner 0.1.0
translations_cleaner: ^0.1.0 copied to clipboard
Package to remove unused keys in arb files, across all translations
0.1.0 #
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
0.0.5 #
- 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.1 #
- Initial version.