We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f85082 commit 18a0f6fCopy full SHA for 18a0f6f
packages/vue-i18n-core/src/i18n.ts
@@ -830,7 +830,10 @@ function getI18nInstance(instance: ComponentInternalInstance): I18n {
830
if (vm == null) {
831
throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR)
832
}
833
- const i18n = (vm as any)._i18nBridgeRoot // eslint-disable-line @typescript-eslint/no-explicit-any
+ let i18n = (vm as any)._i18nBridgeRoot // eslint-disable-line @typescript-eslint/no-explicit-any
834
+ if (!i18n) {
835
+ i18n = _legacyI18n
836
+ }
837
/* istanbul ignore if */
838
if (!i18n) {
839
throw createI18nError(I18nErrorCodes.NOT_INSLALLED)
0 commit comments