mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-08 06:30:04 +00:00
Create presubmit hooks for i18n (#1763)
* Add locale scripts to package.json * Add i18n hooks
This commit is contained in:
@@ -6,6 +6,11 @@ export default {
|
||||
'vue-tsc --noEmit',
|
||||
'tsc --noEmit',
|
||||
'tsc-strict'
|
||||
],
|
||||
|
||||
'./src/locales/*.json': (stagedFiles) => [
|
||||
'lobe-i18n locale',
|
||||
...formatFiles(stagedFiles)
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,8 @@
|
||||
"prepare": "husky || true",
|
||||
"preview": "vite preview",
|
||||
"lint": "eslint src",
|
||||
"lint:fix": "eslint src --fix"
|
||||
"lint:fix": "eslint src --fix",
|
||||
"locale": "lobe-i18n locale"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.24.7",
|
||||
|
||||
Reference in New Issue
Block a user