easy_localization_cleaner 0.0.6
easy_localization_cleaner: ^0.0.6 copied to clipboard
A Dart CLI tool designed to clean up unused localization keys from JSON files used with the easy_localization package.
0.0.6 #
- Added support for the
--remove-keys(-k) command to manually specify keys to remove from JSON files.- Accepts a comma-separated list of keys (e.g.,
--remove-keys=key1,key2).
- Accepts a comma-separated list of keys (e.g.,
- Added support for the
--auto-remove-keys(-r) flag to allow user confirmation before removing unused keys when set tofalse. - Added support for reading configuration from
easy_localization_cleaner.yamlorpubspec.yaml.- The
easy_localization_cleanersection can now be defined in either file. - Supported configuration options:
current_path: Specifies the current project path for locating files and resources.remove_keys: A list of keys to remove from JSON files.auto_remove_keys: A flag to enable or disable automatic removal of unused keys.export_log: A flag to enable or disable exporting unused keys to a log file.assets_dir: Specifies the directory where the JSON files are located.json_indent: Specifies the number of spaces or tab character for JSON indentation.
- The
0.0.5 #
- Remove log and update README
0.0.4 #
- Fixed an issue where the
--json-indent=\tcommand was not correctly interpreted as a tab character.- Now supports both
--json-indent=\tand--json-indent=tfor specifying tab indentation.
- Now supports both
- Improved the
--json-indentoption to handle edge cases and ensure proper fallback to default values.
0.0.3 #
- Added support for the
--json-indent(-j) command to specify JSON indentation format.- Use
\tfor tabs or a number (e.g.,4) for spaces. - Default indentation is 2 spaces.
- Use
- Updated the
removeUnusedKeysFromJsonmethod to dynamically handle JSON indentation based on the provided command-line argument. - Updated the README with examples and documentation for the
--json-indentcommand.
0.0.2 #
- Added support for short commands (e.g.,
-cfor--current-path,-gfor--generated-class-key). - Improved handling of
LocaleKeys.keyin theKeyUsageVisitorto support direct usage without method invocations. - Fixed lint issues by ensuring all lines are within the 80-character limit.
0.0.1 #
- Initial version.