Skip to content

Commit

Permalink
chore(fix): intlify#1630 make the install function synchronous to be …
Browse files Browse the repository at this point in the history
…aligned with the Vue Plugin interface
  • Loading branch information
k-paxian committed Nov 5, 2023
1 parent 3da0f56 commit 9ef9e0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vue-i18n-core/src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9ef9e0e

Please sign in to comment.