@vueuse/i18n

[depreacted] Composition wrapper for [vue-i18n](https://github.com/kazupon/vue-i18n)

Usage no npm install needed!

<script type="module">
  import vueuseI18n from 'https://cdn.skypack.dev/@vueuse/i18n';
</script>

README

[DEPREACTED]

Please use these packages instead:


Lacgay Docs

🌍 @vueuse/i18n

NPM version

This is an add-on of VueUse. A wrapper for vue-i18n in Composition API. You can use it before vue-i18n-next ready.

Full Documents

📦 Install

for Vue 3 (vue-next)

npm i @vueuse/i18n@vue3 vue-i18n

for Vue 2 with composition-api polyfill

npm i @vueuse/i18n@vue2 vue-i18n

⚡ Functions

@vueuse/i18n provides following functions

  • i18n
    • createI18n — create a global i18n instance to be reused
    • useI18n — use vue-i18n instance

You can checkout the full documents and live demos in Storybook.

📄 License

MIT License © 2019-2020 Anthony Fu