mainmatter / ember-intl-analyzer

Find missing or unused translations in your Ember.js projects
MIT License
48 stars 14 forks source link

Show redundant whitelist entries #645

Closed DanaKirsh closed 7 months ago

DanaKirsh commented 10 months ago

List entries in the whitelist that are not needed anymore

Mikek2252 commented 7 months ago

Thanks @robinborst95 for adding this feature, It is now available in ember 4.6.0

robinborst95 commented 7 months ago

Thanks for the release! I've just tried it in our application, and at first it showed entries that weren't supposed to be redundant, so I thought I missed something. However, it turns out that there was 1 whitelist entry that whitelisted way more translations than intended, one along the lines of prefix\.(a|b)_count|onboarding that made all translations containing onboarding whitelisted, where it was supposed to be prefix\.((a|b)_count|onboarding). Fixing this entry found a whole bunch of unused translations keys that contained onboarding, so I could remove all of those now :broom:! So, for us it has already proven to be useful :raised_hands: