@@ -93,7 +93,6 @@ declare module 'vue' {
9393
9494// for bridge
9595let _legacyVueI18n : any = /* #__PURE__*/ null // eslint-disable-line @typescript-eslint/no-explicit-any
96- let _legacyI18n : I18n | null = /* #__PURE__*/ null // eslint-disable-line @typescript-eslint/no-explicit-any
9796
9897/**
9998 * I18n Options for `createI18n`
@@ -471,11 +470,6 @@ export function createI18n<
471470export function createI18n ( options : any = { } , VueI18nLegacy ?: any ) : any {
472471 type _I18n = I18n & I18nInternal
473472
474- if ( __BRIDGE__ && _legacyI18n ) {
475- __DEV__ &&
476- warn ( getWarnMessage ( I18nWarnCodes . NOT_SUPPORT_MULTI_I18N_INSTANCE ) )
477- return _legacyI18n
478- }
479473 if ( __BRIDGE__ ) {
480474 _legacyVueI18n = VueI18nLegacy
481475 }
@@ -675,7 +669,6 @@ export function createI18n(options: any = {}, VueI18nLegacy?: any): any {
675669 key =>
676670 Object . defineProperty ( i18n , key , { value : ( methodMap as any ) [ key ] } ) // eslint-disable-line @typescript-eslint/no-explicit-any
677671 )
678- _legacyI18n = i18n
679672 return i18n
680673 }
681674}
@@ -783,7 +776,7 @@ export function useI18n<
783776 }
784777
785778 if ( __BRIDGE__ ) {
786- if ( _legacyVueI18n == null || _legacyI18n == null ) {
779+ if ( _legacyVueI18n == null ) {
787780 throw createI18nError ( I18nErrorCodes . NOT_INSLALLED )
788781 }
789782 }
@@ -936,10 +929,7 @@ function getI18nInstance(instance: ComponentInternalInstance): I18n {
936929 if ( vm == null ) {
937930 throw createI18nError ( I18nErrorCodes . UNEXPECTED_ERROR )
938931 }
939- let i18n = ( vm as any ) . _i18nBridgeRoot // eslint-disable-line @typescript-eslint/no-explicit-any
940- if ( ! i18n ) {
941- i18n = _legacyI18n
942- }
932+ const i18n = ( vm as any ) . _i18nBridgeRoot // eslint-disable-line @typescript-eslint/no-explicit-any
943933 /* istanbul ignore if */
944934 if ( ! i18n ) {
945935 throw createI18nError ( I18nErrorCodes . NOT_INSLALLED )
0 commit comments