Skip to content

Commit 12b8773

Browse files
authored
chore(fix): #1630 make the install function synchronous to be aligned with the Vue Plugin interface (#1631)
1 parent 01f72ea commit 12b8773

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/vue-i18n-core/src/i18n.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,8 @@ export function createI18n(options: any = {}, VueI18nLegacy?: any): any {
681681
// @internal
682682
__deleteInstance
683683
}
684+
// make the install function synchronous to be aligned with the Vue Plugin interface
685+
i18n.install = (...args) => i18n.install(...args)
684686
return i18n
685687
} else {
686688
// extend legacy VueI18n instance

0 commit comments

Comments
 (0)