From 9556c4a96a55192d3cbe9d96c95d62c5cf82972a Mon Sep 17 00:00:00 2001 From: Luc Claustres Date: Thu, 12 Dec 2024 11:53:35 +0100 Subject: [PATCH] fix: i18n initialization order to avoid translation message from the browser --- src/boot/kdk.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/boot/kdk.js b/src/boot/kdk.js index e655f47f..172eed02 100644 --- a/src/boot/kdk.js +++ b/src/boot/kdk.js @@ -21,6 +21,8 @@ export default async ({ app }) => { // https://vuejs.org/guide/components/provide-inject.html#working-with-reactivity app.config.unwrapInjectedRef = true + // Initializes i18n + await i18n.initialize(app, ['core', 'map', 'crisis']) // Initiate the client const api = initializeApi(setupApi) // Setup app hooks @@ -28,9 +30,6 @@ export default async ({ app }) => { // Then all services await services.call(api) - // Initializes i18n - await i18n.initialize(app, ['core', 'map', 'crisis']) - // Register global properties to the the vue app app.config.globalProperties.$store = Store app.config.globalProperties.$layout = Layout