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

This commit is contained in:
Renaud Chaput 2026-02-10 10:13:09 +01:00 committed by GitHub
parent 0b8ce7200a
commit 837d1decc9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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;