Add a i18n check in pre-commit for JS files (#37793)

This commit is contained in:
Renaud Chaput authored and GitHub committed 2026-02-10 09:13:09 +00:00
1 parent 0b8ce7200a
commit 837d1decc9
1 file changed
+4
+4
View File
@@ -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;