verify i18n extraction has been run before committing

This commit is contained in:
Athou
2026-02-10 11:07:50 +01:00
parent 15c8289a01
commit fee47427cf
4 changed files with 7409 additions and 6944 deletions

View File

@@ -0,0 +1 @@
cd commafeed-client && npx lint-staged

View File

@@ -0,0 +1,3 @@
export default {
"src/**/*.{js,jsx,ts,tsx}": () => ["npm run i18n:extract", "git diff --exit-code commafeed-client/src/locales/en/messages.po"],
}

File diff suppressed because it is too large Load Diff

View File

@@ -12,7 +12,8 @@
"test:ci": "vitest run", "test:ci": "vitest run",
"lint": "biome check", "lint": "biome check",
"lint:fix": "biome check --write", "lint:fix": "biome check --write",
"i18n:extract": "lingui extract --clean" "i18n:extract": "lingui extract --clean",
"prepare": "cd .. && husky ./commafeed-client/.husky"
}, },
"dependencies": { "dependencies": {
"@emotion/react": "^11.14.0", "@emotion/react": "^11.14.0",
@@ -65,7 +66,9 @@
"@types/tinycon": "^0.6.7", "@types/tinycon": "^0.6.7",
"@vitejs/plugin-react": "^5.1.3", "@vitejs/plugin-react": "^5.1.3",
"babel-plugin-react-compiler": "1.0.0", "babel-plugin-react-compiler": "1.0.0",
"husky": "^9.1.7",
"jsdom": "^28.0.0", "jsdom": "^28.0.0",
"lint-staged": "^16.2.7",
"typescript": "^5.9.3", "typescript": "^5.9.3",
"vite": "^7.3.1", "vite": "^7.3.1",
"vite-plugin-checker": "^0.12.0", "vite-plugin-checker": "^0.12.0",