diff --git a/lint-staged.config.js b/lint-staged.config.js index 63f5258a940..4f9dd99ef66 100644 --- a/lint-staged.config.js +++ b/lint-staged.config.js @@ -5,6 +5,10 @@ const config = { '*.{css,scss}': 'stylelint --fix', '*.haml': 'bin/haml-lint -a', '**/*.ts?(x)': () => 'tsc -p tsconfig.json --noEmit', + 'app/javascript/**/*.{js,jsx,ts,tsx}': () => [ + `yarn i18n:extract`, + 'git diff --exit-code app/javascript/mastodon/locales/en.json', + ], }; module.exports = config;