File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -36,16 +36,16 @@ export function checkInstallPackage(
36
36
)
37
37
}
38
38
39
- type VueI18nVersion = '8' | ' 9' | 'unknown' | ''
39
+ type VueI18nVersion = '9' | 'unknown' | ''
40
40
41
- export function getVueI18nVersion ( debug : Function ) : VueI18nVersion {
42
- const VueI18n = loadModule ( 'vue-i18n' , debug )
41
+ export function getVueI18nVersion (
42
+ debug : Function ,
43
+ pkg = 'vue-i18n'
44
+ ) : VueI18nVersion {
45
+ const VueI18n = loadModule ( pkg , debug )
43
46
if ( VueI18n == null ) {
44
47
return ''
45
48
}
46
- if ( VueI18n . version && VueI18n . version . startsWith ( '8.' ) ) {
47
- return '8'
48
- }
49
49
if ( VueI18n . VERSION && VueI18n . VERSION . startsWith ( '9.' ) ) {
50
50
return '9'
51
51
}
Original file line number Diff line number Diff line change @@ -41,10 +41,6 @@ const debug = createDebug('unplugin-vue-i18n')
41
41
const installedPkg = checkInstallPackage ( '@intlify/unplugin-vue-i18n' , debug )
42
42
const vueI18nVersion = getVueI18nVersion ( debug )
43
43
44
- if ( vueI18nVersion === '8' ) {
45
- warn ( `vue-i18n@8 is not supported, since sinece Vue 2 was EOL on 2023.` )
46
- }
47
-
48
44
export const unplugin = createUnplugin < PluginOptions > ( ( options = { } , meta ) => {
49
45
debug ( 'plugin options:' , options , meta . framework )
50
46
You can’t perform that action at this time.
0 commit comments