mirror of
https://github.com/mastodon/mastodon.git
synced 2026-03-21 18:05:23 -05:00
Add a i18n check in pre-commit for JS files (#37793)
This commit is contained in:
parent
0b8ce7200a
commit
837d1decc9
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user