Skip to content

Commit

Permalink
fix(i18n): vue-i18n message issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin-Guillemin committed Dec 16, 2024
1 parent bfdc067 commit 76dae92
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 47 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@vueuse/core": "^12.0.0",
"pinia": "^2.3.0",
"vue": "^3.5.13",
"vue-i18n": "10.0.5",
"vue-i18n": "^10.0.5",
"vue-router": "^4.5.0",
"vuetify": "^3.7.5"
},
Expand Down
11 changes: 9 additions & 2 deletions src/main/webapp/src/locales/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,12 @@
* limitations under the License.
*/

export { default as en } from './en'
export { default as fr } from './fr'
import en from './en'
import fr from './fr'

const messages = {
en,
fr,
}

export { en, fr, messages }
2 changes: 1 addition & 1 deletion src/main/webapp/src/plugins/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import * as messages from '@/locales'
import { messages } from '@/locales'
import { createI18n } from 'vue-i18n'

const config: {
Expand Down
53 changes: 10 additions & 43 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1015,16 +1015,6 @@ __metadata:
languageName: node
linkType: hard

"@intlify/core-base@npm:10.0.4":
version: 10.0.4
resolution: "@intlify/core-base@npm:10.0.4"
dependencies:
"@intlify/message-compiler": "npm:10.0.4"
"@intlify/shared": "npm:10.0.4"
checksum: 10/d6fdbf6a09ea144ee087f234edf19d9e362ceae74de51447229c7c2894fdacb5aa6852972e1472a13a8f3ea4f14586e318a18549737b39a62b375b34606d0d1b
languageName: node
linkType: hard

"@intlify/core-base@npm:10.0.5":
version: 10.0.5
resolution: "@intlify/core-base@npm:10.0.5"
Expand All @@ -1035,16 +1025,6 @@ __metadata:
languageName: node
linkType: hard

"@intlify/message-compiler@npm:10.0.4":
version: 10.0.4
resolution: "@intlify/message-compiler@npm:10.0.4"
dependencies:
"@intlify/shared": "npm:10.0.4"
source-map-js: "npm:^1.0.2"
checksum: 10/be61cbe5e641fc1c09293770d136b27148bb15e72c913acabb0330b9761bc845a95d55a782e966b55368346dc7418a8386fef1b2fa106a081c1d204b43892feb
languageName: node
linkType: hard

"@intlify/message-compiler@npm:10.0.5":
version: 10.0.5
resolution: "@intlify/message-compiler@npm:10.0.5"
Expand Down Expand Up @@ -1072,20 +1052,20 @@ __metadata:
languageName: node
linkType: hard

"@intlify/shared@npm:10.0.4, @intlify/shared@npm:^10.0.0, @intlify/shared@npm:latest":
version: 10.0.4
resolution: "@intlify/shared@npm:10.0.4"
checksum: 10/5a35798c6ee7fd1f1a5a3fe3fb15871ca87998c607ab5642255d0685d2a7b895c7241707333ff09d4b879a5092a9ff72bba67882917d19fcee03838f827ae349
languageName: node
linkType: hard

"@intlify/shared@npm:10.0.5":
"@intlify/shared@npm:10.0.5, @intlify/shared@npm:^10.0.0":
version: 10.0.5
resolution: "@intlify/shared@npm:10.0.5"
checksum: 10/64552b8770ad236c11893837e95e4e2ea7c947396cfcee797bf8e26afea6d06f707178f4aa36b0b416d89800ba9cd058e6742bf2ebdd7c7ff7f9fc1ec9bc7b48
languageName: node
linkType: hard

"@intlify/shared@npm:latest":
version: 10.0.4
resolution: "@intlify/shared@npm:10.0.4"
checksum: 10/5a35798c6ee7fd1f1a5a3fe3fb15871ca87998c607ab5642255d0685d2a7b895c7241707333ff09d4b879a5092a9ff72bba67882917d19fcee03838f827ae349
languageName: node
linkType: hard

"@intlify/unplugin-vue-i18n@npm:^6.0.1":
version: 6.0.1
resolution: "@intlify/unplugin-vue-i18n@npm:6.0.1"
Expand Down Expand Up @@ -2817,7 +2797,7 @@ __metadata:
vite-plugin-vuetify: "npm:^2.0.4"
vitest: "npm:^2.1.8"
vue: "npm:^3.5.13"
vue-i18n: "npm:10.0.5"
vue-i18n: "npm:^10.0.5"
vue-router: "npm:^4.5.0"
vue-tsc: "npm:^2.1.10"
vue3-toastify: "npm:^0.2.5"
Expand Down Expand Up @@ -8676,7 +8656,7 @@ __metadata:
languageName: node
linkType: hard

"vue-i18n@npm:10.0.5":
"vue-i18n@npm:^10.0.0, vue-i18n@npm:^10.0.5":
version: 10.0.5
resolution: "vue-i18n@npm:10.0.5"
dependencies:
Expand All @@ -8689,19 +8669,6 @@ __metadata:
languageName: node
linkType: hard

"vue-i18n@npm:^10.0.0":
version: 10.0.4
resolution: "vue-i18n@npm:10.0.4"
dependencies:
"@intlify/core-base": "npm:10.0.4"
"@intlify/shared": "npm:10.0.4"
"@vue/devtools-api": "npm:^6.5.0"
peerDependencies:
vue: ^3.0.0
checksum: 10/b3b68c54caa2cb25bde91290509cf52a6b696df4f7e9926ea75d019c556bb58620ff8d9fb5d09484ad047bbd79233a7f6c32d87f5deeeeb441137dc79ffb5b14
languageName: node
linkType: hard

"vue-router@npm:^4.5.0":
version: 4.5.0
resolution: "vue-router@npm:4.5.0"
Expand Down

0 comments on commit 76dae92

Please sign in to comment.