i18n新版打包后会失效故回退版本

This commit is contained in:
Cloyir 2026-01-12 04:31:40 +08:00
parent c14c3d210a
commit 53288f45aa
3 changed files with 20 additions and 36 deletions

View File

@ -14,7 +14,7 @@
"@tauri-apps/plugin-opener": "^2", "@tauri-apps/plugin-opener": "^2",
"socket.io-client": "^4.8.1", "socket.io-client": "^4.8.1",
"vue": "^3.5.13", "vue": "^3.5.13",
"vue-i18n": "12.0.0-alpha.3" "vue-i18n": "^11.1.7"
}, },
"devDependencies": { "devDependencies": {
"@tauri-apps/cli": "^2", "@tauri-apps/cli": "^2",

53
pnpm-lock.yaml generated
View File

@ -21,8 +21,8 @@ importers:
specifier: ^3.5.13 specifier: ^3.5.13
version: 3.5.26 version: 3.5.26
vue-i18n: vue-i18n:
specifier: 12.0.0-alpha.3 specifier: ^11.1.7
version: 12.0.0-alpha.3(vue@3.5.26) version: 11.2.8(vue@3.5.26)
devDependencies: devDependencies:
'@tauri-apps/cli': '@tauri-apps/cli':
specifier: ^2 specifier: ^2
@ -209,24 +209,18 @@ packages:
cpu: [x64] cpu: [x64]
os: [win32] os: [win32]
'@intlify/core-base@12.0.0-alpha.3': '@intlify/core-base@11.2.8':
resolution: {integrity: sha512-LEvBHBUbiOOtIBkp4IIQENVC5Fg2YHsvdXN1+WRIxQ8hzHbHSBiqZ2l68B/yg8sE1a4S7dqhkaAedunShWPH+Q==} resolution: {integrity: sha512-nBq6Y1tVkjIUsLsdOjDSJj4AsjvD0UG3zsg9Fyc+OivwlA/oMHSKooUy9tpKj0HqZ+NWFifweHavdljlBLTwdA==}
engines: {node: '>= 16'} engines: {node: '>= 16'}
'@intlify/message-compiler@12.0.0-alpha.3': '@intlify/message-compiler@11.2.8':
resolution: {integrity: sha512-mDDTN3gfYOHhBnpnlby19UHyvMaOnzdlpsIrxUfs44R/vCATfn8pMOkE8PXD2t410xkocEj3FpDcC9XC/0v4Dg==} resolution: {integrity: sha512-A5n33doOjmHsBtCN421386cG1tWp5rpOjOYPNsnpjIJbQ4POF0QY2ezhZR9kr0boKwaHjbOifvyQvHj2UTrDFQ==}
engines: {node: '>= 16'} engines: {node: '>= 16'}
'@intlify/shared@12.0.0-alpha.3': '@intlify/shared@11.2.8':
resolution: {integrity: sha512-ryaNYBvxQjyJUmVuBBg+HHUsmGnfxcEUPR0NCeG4/K9N2qtyFE35C80S15IN6iYFE2MGWLN7HfOSyg0MXZIc9w==} resolution: {integrity: sha512-l6e4NZyUgv8VyXXH4DbuucFOBmxLF56C/mqh2tvApbzl2Hrhi1aTDcuv5TKdxzfHYmpO3UB0Cz04fgDT9vszfw==}
engines: {node: '>= 16'} engines: {node: '>= 16'}
'@intlify/vue-i18n-core@12.0.0-alpha.3':
resolution: {integrity: sha512-YwAfTQILHN+VoK0P/Yv47GbKnEf1lhfbliyVyW3knAL1EmT8m0m3rwffXJnwyQhYw8Jpx85CpL49WkSgyi6d/g==}
engines: {node: '>= 16'}
peerDependencies:
vue: ^3.0.0
'@jridgewell/sourcemap-codec@1.5.5': '@jridgewell/sourcemap-codec@1.5.5':
resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==} resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==}
@ -623,10 +617,9 @@ packages:
yaml: yaml:
optional: true optional: true
vue-i18n@12.0.0-alpha.3: vue-i18n@11.2.8:
resolution: {integrity: sha512-+KQgD9LJoHfGCdJh3gaLdVS/Sps1n860+6wsjyeNLWJeEofjdVH7KPjz4rAeBlTAUaIDlIjHoXQY0Lk+8B6S9w==} resolution: {integrity: sha512-vJ123v/PXCZntd6Qj5Jumy7UBmIuE92VrtdX+AXr+1WzdBHojiBxnAxdfctUFL+/JIN+VQH4BhsfTtiGsvVObg==}
engines: {node: '>= 16'} engines: {node: '>= 16'}
deprecated: This version is NOT deprecated. Previous deprecation was a mistake.
peerDependencies: peerDependencies:
vue: ^3.0.0 vue: ^3.0.0
@ -747,24 +740,17 @@ snapshots:
'@esbuild/win32-x64@0.25.12': '@esbuild/win32-x64@0.25.12':
optional: true optional: true
'@intlify/core-base@12.0.0-alpha.3': '@intlify/core-base@11.2.8':
dependencies: dependencies:
'@intlify/message-compiler': 12.0.0-alpha.3 '@intlify/message-compiler': 11.2.8
'@intlify/shared': 12.0.0-alpha.3 '@intlify/shared': 11.2.8
'@intlify/message-compiler@12.0.0-alpha.3': '@intlify/message-compiler@11.2.8':
dependencies: dependencies:
'@intlify/shared': 12.0.0-alpha.3 '@intlify/shared': 11.2.8
source-map-js: 1.2.1 source-map-js: 1.2.1
'@intlify/shared@12.0.0-alpha.3': {} '@intlify/shared@11.2.8': {}
'@intlify/vue-i18n-core@12.0.0-alpha.3(vue@3.5.26)':
dependencies:
'@intlify/core-base': 12.0.0-alpha.3
'@intlify/shared': 12.0.0-alpha.3
'@vue/devtools-api': 6.6.4
vue: 3.5.26
'@jridgewell/sourcemap-codec@1.5.5': {} '@jridgewell/sourcemap-codec@1.5.5': {}
@ -1106,11 +1092,10 @@ snapshots:
optionalDependencies: optionalDependencies:
fsevents: 2.3.3 fsevents: 2.3.3
vue-i18n@12.0.0-alpha.3(vue@3.5.26): vue-i18n@11.2.8(vue@3.5.26):
dependencies: dependencies:
'@intlify/core-base': 12.0.0-alpha.3 '@intlify/core-base': 11.2.8
'@intlify/shared': 12.0.0-alpha.3 '@intlify/shared': 11.2.8
'@intlify/vue-i18n-core': 12.0.0-alpha.3(vue@3.5.26)
'@vue/devtools-api': 6.6.4 '@vue/devtools-api': 6.6.4
vue: 3.5.26 vue: 3.5.26

View File

@ -140,7 +140,6 @@ onUnmounted(() => {
<span :class="{ connected: connected, disconnected: !connected }"> <span :class="{ connected: connected, disconnected: !connected }">
{{ connected ? $t('common.connected') : $t('common.disconnected') }} {{ connected ? $t('common.connected') : $t('common.disconnected') }}
</span> </span>
<span>{{ $t('common.user_id') }}: {{ userId }}</span>
</div> </div>
<div class="server-controls" v-if="peerConnections.size === 0"> <div class="server-controls" v-if="peerConnections.size === 0">
<div class="server-url-input"> <div class="server-url-input">