Feature(custom): split i18n in main and renderer, use vue-i18n

This commit is contained in:
Kuingsmile
2025-08-01 13:10:05 +08:00
parent ff95e0f6fe
commit 236b7c6e7d
76 changed files with 4310 additions and 5986 deletions

View File

@@ -24,10 +24,6 @@
"cz": "git-cz",
"dev": "electron-vite dev --watch",
"i18n": "node ./scripts/gen-i18n-types.js",
"i18n:check": "node ./scripts/find-unused-i18n.js",
"i18n:check:verbose": "node ./scripts/find-unused-i18n.js --verbose",
"i18n:clean": "node ./scripts/find-unused-i18n.js --delete",
"i18n:clean:dry-run": "node ./scripts/find-unused-i18n.js --delete --dry-run",
"link": "node ./scripts/link.js",
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.vue src/",
"lint:dpdm": "dpdm -T --tsconfig ./tsconfig.json --no-tree --no-warning --exit-code circular:1 src/main/index.ts",
@@ -78,8 +74,8 @@
"node-ssh-no-cpu-features": "^2.0.0",
"nodejs-file-downloader": "^4.13.0",
"piclist": "file:../piclist-core",
"pinia": "^2.1.7",
"pinia-plugin-persistedstate": "^3.2.1",
"pinia": "^3.0.3",
"pinia-plugin-persistedstate": "^4.4.1",
"proxy-agent": "^6.5.0",
"qiniu": "7.14.0",
"qrcode.vue": "^3.6.0",
@@ -91,6 +87,7 @@
"uuid": "^11.1.0",
"video.js": "^8.23.3",
"vue": "^3.5.18",
"vue-i18n": "^11.1.11",
"vue-router": "^4.5.1",
"vue3-lazyload": "^0.3.8",
"vue3-photo-preview": "^0.3.0",
@@ -100,6 +97,7 @@
"devDependencies": {
"@electron/notarize": "^3.0.1",
"@eslint/js": "^9.32.0",
"@intlify/unplugin-vue-i18n": "^6.0.8",
"@types/ali-oss": "^6.16.11",
"@types/fs-extra": "^11.0.4",
"@types/js-yaml": "^4.0.9",
@@ -125,7 +123,7 @@
"eslint-plugin-prettier": "^5.5.3",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-unicorn": "^60.0.0",
"eslint-plugin-vue": "^10.3.0",
"eslint-plugin-vue": "^10.4.0",
"husky": "^9.1.7",
"node-bump-version": "^2.0.0",
"npm-check-updates": "^18.0.2",