Skip to content

Commit

Permalink
fix: i18n initialization order to avoid translation message from the …
Browse files Browse the repository at this point in the history
…browser
  • Loading branch information
claustres committed Dec 12, 2024
1 parent fc99cdf commit 9556c4a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/boot/kdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,15 @@ 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
api.hooks(appHooks)
// 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
Expand Down

0 comments on commit 9556c4a

Please sign in to comment.