@intlify/vue-i18n-bridge
Advanced tools
Comparing version 0.5.0 to 0.6.0-633ea7c
{ | ||
"name": "@intlify/vue-i18n-bridge", | ||
"version": "0.5.0", | ||
"version": "0.6.0-633ea7c", | ||
"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-bridge": "^9.2.0-beta.25" | ||
"vue-i18n": "^8.26.1 || ^9.2.0-beta.25 || ^9.3.0-beta.3", | ||
"vue-i18n-bridge": "^9.2.0-beta.25 || ^9.3.0-beta.3" | ||
}, | ||
@@ -76,3 +73,6 @@ "peerDependenciesMeta": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"postinstall": "node ./scripts/postinstall.js" | ||
} | ||
} | ||
} |
@@ -8,5 +8,7 @@ # @intlify/vue-i18n-bridge | ||
## đ Features | ||
- Vue I18n composable APIs available on Vue 2 & Vue 3 (e.g `createI18n`, `useI18n`) | ||
- Auto detect Vue I18n version on bundling | ||
- Manual switch versions | ||
## đŋ Installation | ||
@@ -64,3 +66,3 @@ | ||
exclude: ['@intlify/vue-i18n-bridge'] | ||
} | ||
} | ||
}) | ||
@@ -88,2 +90,3 @@ ``` | ||
To explicitly switch the redirecting version, you can use these commands in your project's root: | ||
### đ¤ Manually Switch Versions | ||
@@ -106,2 +109,3 @@ | ||
``` | ||
### 𩹠Auto Fix | ||
@@ -114,2 +118,3 @@ | ||
``` | ||
### âŗī¸ Isomorphic Testings | ||
@@ -148,3 +153,9 @@ | ||
## đ Examples | ||
- [Vue 2 + Vue I18n v8](../../examples/vue-i18n-v8-vue2) | ||
- [Vue 3 + Vue I18n v9](../../examples/vue-i18n-v9-vue3) | ||
## đ Thanks | ||
This package idea was inspired from [vue-demi](https://github.com/vueuse/vue-demi), [@antfu](https://github.com/antfu)'s great work! | ||
@@ -151,0 +162,0 @@ |
26235
160