@@ -93,7 +93,6 @@ declare module 'vue' {
93
93
94
94
// for bridge
95
95
let _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
97
96
98
97
/**
99
98
* I18n Options for `createI18n`
@@ -471,11 +470,6 @@ export function createI18n<
471
470
export function createI18n ( options : any = { } , VueI18nLegacy ?: any ) : any {
472
471
type _I18n = I18n & I18nInternal
473
472
474
- if ( __BRIDGE__ && _legacyI18n ) {
475
- __DEV__ &&
476
- warn ( getWarnMessage ( I18nWarnCodes . NOT_SUPPORT_MULTI_I18N_INSTANCE ) )
477
- return _legacyI18n
478
- }
479
473
if ( __BRIDGE__ ) {
480
474
_legacyVueI18n = VueI18nLegacy
481
475
}
@@ -675,7 +669,6 @@ export function createI18n(options: any = {}, VueI18nLegacy?: any): any {
675
669
key =>
676
670
Object . defineProperty ( i18n , key , { value : ( methodMap as any ) [ key ] } ) // eslint-disable-line @typescript-eslint/no-explicit-any
677
671
)
678
- _legacyI18n = i18n
679
672
return i18n
680
673
}
681
674
}
@@ -783,7 +776,7 @@ export function useI18n<
783
776
}
784
777
785
778
if ( __BRIDGE__ ) {
786
- if ( _legacyVueI18n == null || _legacyI18n == null ) {
779
+ if ( _legacyVueI18n == null ) {
787
780
throw createI18nError ( I18nErrorCodes . NOT_INSLALLED )
788
781
}
789
782
}
@@ -936,10 +929,7 @@ function getI18nInstance(instance: ComponentInternalInstance): I18n {
936
929
if ( vm == null ) {
937
930
throw createI18nError ( I18nErrorCodes . UNEXPECTED_ERROR )
938
931
}
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
943
933
/* istanbul ignore if */
944
934
if ( ! i18n ) {
945
935
throw createI18nError ( I18nErrorCodes . NOT_INSLALLED )
0 commit comments