biesbjerg / ngx-translate-extract

Extract translatable (using ngx-translate) strings and save as a JSON or Gettext pot file
MIT License
524 stars 196 forks source link

Feature request: add exclusion to cleanup. #223

Open tleveque23 opened 3 years ago

tleveque23 commented 3 years ago

When using the --clean option, it would be nice to have a way to exclude some part of the json file. For exemple, some translation could have been added manually and should stay present after the cleanup. I already have two exemple of this problem: 1- My code is generating key programatically for error handling. (prefixing an error code received by the api) 2- Latest version of PrimeNg is using ngx-translate to store translation. But of course the keys are not defined anywhere in my code. Using the clean option will always remove them!