Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tool/unused i18n token finder #457

Closed
wants to merge 8 commits into from
Add execution time logging to unused i18n token finder script
  • Loading branch information
wlycdgr committed Oct 10, 2019
commit bab629a25e7504ff03011f2c6cdf1b7a91802b3e
@@ -16,6 +16,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0
*/

console.time('unused-i18n-token-finder');

// eslint-disable-next-line import/no-extraneous-dependencies
const fs = require('fs');
// eslint-disable-next-line import/no-extraneous-dependencies
@@ -119,4 +121,6 @@ console.log('Since some i18n tokens are generated dynamically,')
console.log('and since some others are formatted in a non-standard way,');
console.log('the list generated by this script should ALWAYS');
console.log('be verified manually before removing any of the tokens in it.');
console.log('\nThe results are in ./tools/i18n_results/unused_tokens.txt');
console.log('\nThe results are in ./tools/i18n_results/unused_tokens.txt\n');

console.timeEnd('unused-i18n-token-finder');
ProTip! Use n and p to navigate between commits in a pull request.