From 9ef9e0eb5f24c183a255b5980178d4be36fa1812 Mon Sep 17 00:00:00 2001 From: Alexander Mazuruk Date: Sun, 5 Nov 2023 18:55:25 +0100 Subject: [PATCH] chore(fix): #1630 make the install function synchronous to be aligned with the Vue Plugin interface --- packages/vue-i18n-core/src/i18n.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/vue-i18n-core/src/i18n.ts b/packages/vue-i18n-core/src/i18n.ts index d1ffa874f..9e67508b3 100644 --- a/packages/vue-i18n-core/src/i18n.ts +++ b/packages/vue-i18n-core/src/i18n.ts @@ -681,6 +681,8 @@ export function createI18n(options: any = {}, VueI18nLegacy?: any): any { // @internal __deleteInstance } + // make the install function synchronous to be aligned with the Vue Plugin interface + i18n.install = (...args) => i18n.install(...args) return i18n } else { // extend legacy VueI18n instance