@i18n-micro/vue

Vue 3 bindings for i18n-micro — composables, components, and routing helpers.
4,719 251
Install
npm install @i18n-micro/vue
Latest Version:1.4.10
Vue:3
License:MIT
Last Updated:Oct 15, 2026
Links: GitHub  ·  npm
Maintainer: s00d

@i18n-micro/vue

Vue 3 plugin for internationalization using the same core logic as Nuxt I18n Micro. Provides reactive translations, route-specific support, and full TypeScript support.

Installation

pnpm add @i18n-micro/vue
# or
npm install @i18n-micro/vue
# or
yarn add @i18n-micro/vue

Quick Start

import { createApp } from 'vue'
import { createI18n } from '@i18n-micro/vue'

const app = createApp(App)

const i18n = createI18n({
  locale: 'en',
  fallbackLocale: 'en',
  messages: {
    en: {
      greeting: 'Hello, {name}!',
      apples: 'no apples | one apple | {count} apples',
    },
    fr: {
      greeting: 'Bonjour, {name}!',
      apples: 'pas de pommes | une pomme | {count} pommes',
    },
  },
})

app.use(i18n)
app.mount('#app')

Usage in Components

<template>
  <div>
    <p>{{ t('greeting', { name: 'World' }) }}</p>
    <p>{{ tc('apples', 5) }}</p>
  </div>
</template>

<script setup>
import { useI18n } from '@i18n-micro/vue'

const { t, tc, locale } = useI18n()

// Change locale reactively
locale.value = 'fr'
</script>

Resources

License

MIT

Related Packages

vue-translations-cleanup

A tool to find and remove unused translation keys in Vue i18n projects

3,548
@i18n-micro/vitepress

VitePress bindings for i18n-micro — runtime dictionaries, MD components, and loc...

1,848 251
@nuxtjs/i18n

Internationalization for Nuxt

23,877,608 2,085
@intlify/vue-devtools

@intlify/vue-devtools

5,783,452 2,713

Version History

Version Released License
1.4.10 MIT
1.4.9 MIT
1.4.8 MIT
1.4.7 MIT
1.4.6 MIT