@intlify/vue-i18n-bridge
Advanced tools
Comparing version 0.4.0 to 0.5.0-d15430d
@@ -197,6 +197,11 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
declare class VueI18nLegacy { | ||
static install() | ||
static version | ||
} | ||
export * from 'vue-i18n' | ||
export { VueI18n, isVueI18n8, isVueI18n9 } | ||
export default VueI18n | ||
export { isVueI18n8, isVueI18n9 } | ||
export default VueI18nLegacy | ||
/* eslint-enable @typescript-eslint/no-explicit-any */ |
@@ -197,6 +197,11 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
declare class VueI18nLegacy { | ||
static install() | ||
static version | ||
} | ||
export * from 'vue-i18n' | ||
export { VueI18n, isVueI18n8, isVueI18n9 } | ||
export default VueI18n | ||
export { isVueI18n8, isVueI18n9 } | ||
export default VueI18nLegacy | ||
/* eslint-enable @typescript-eslint/no-explicit-any */ |
{ | ||
"name": "@intlify/vue-i18n-bridge", | ||
"version": "0.4.0", | ||
"version": "0.5.0-d15430d", | ||
"description": "Vue I18n bridging for Vue 2 & Vue 3", | ||
"scripts": { | ||
"postinstall": "node ./scripts/postinstall.js" | ||
}, | ||
"peerDependencies": { | ||
"@vue/composition-api": "^1.0.0-rc.1", | ||
"vue-i18n": "^8.26.1 || ^9.2.0-beta.25" | ||
"vue-i18n": "^8.26.1 || ^9.2.0-beta.25", | ||
"vue-i18n-bridge": "^9.2.0-beta.25" | ||
}, | ||
@@ -18,2 +16,5 @@ "peerDependenciesMeta": { | ||
"optional": true | ||
}, | ||
"vue-i18n-bridge": { | ||
"optional": true | ||
} | ||
@@ -58,2 +59,3 @@ }, | ||
}, | ||
"funding": "https://github.com/sponsors/kazupon", | ||
"homepage": "https://github.com/intlify/bridging/tree/main/packages/vue-i18n-bridge#readme", | ||
@@ -73,3 +75,6 @@ "repository": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"postinstall": "node ./scripts/postinstall.js" | ||
} | ||
} | ||
} |
@@ -1,3 +0,4 @@ | ||
const { switchVersion, loadModule, warn } = require('./utils') // eslint-disable-line @typescript-eslint/no-var-requires | ||
const { switchVersion, loadModule, warn, log } = require('./utils') // eslint-disable-line @typescript-eslint/no-var-requires | ||
log('start vue-i18n-bridge postinstall script') | ||
const VueI18n = loadModule('vue-i18n/package.json') | ||
@@ -4,0 +5,0 @@ |
@@ -54,3 +54,3 @@ const fs = require('fs') // eslint-disable-line @typescript-eslint/no-var-requires | ||
if (!i18n) { | ||
warn('Vue I18n plugin is not found. Please run "npm install vue-i18n" to install.') | ||
warn(`Vue I18n plugin is not found. Please run "npm install ${pkg}" to install.`) | ||
return false | ||
@@ -57,0 +57,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
26061
540
3