@i18n-micro/types-generator

Type generator for i18n-micro translation keys
6,991 251
Install
npm install @i18n-micro/types-generator
Latest Version:1.1.10
Vue:3
License:MIT
Last Updated:Oct 15, 2026
Links: GitHub  ·  npm
Maintainer: s00d

@i18n-micro/types-generator

Type generator for i18n-micro translation keys. Automatically generates TypeScript types from JSON translation files.

Installation

npm install -D @i18n-micro/types-generator
# or
pnpm add -D @i18n-micro/types-generator
# or
yarn add -D @i18n-micro/types-generator

Usage

Nuxt

Add to nuxt.config.ts:

export default defineNuxtConfig({
  modules: ['nuxt-i18n-micro', '@i18n-micro/types-generator/nuxt'],
})

Vite/Vue

Add to vite.config.ts:

import { I18nTypesPlugin } from '@i18n-micro/types-generator'

export default defineConfig({
  plugins: [
    I18nTypesPlugin({
      srcDir: 'src',
      translationDir: 'locales',
    }),
  ],
})

Features

  • 🔍 Automatic type generation from JSON files
  • ✅ Full type safety for translation keys
  • 🎯 IDE autocomplete support
  • 🔄 Hot reload on file changes
  • 🚀 Zero runtime overhead

Documentation

See full documentation for detailed usage and examples.

License

MIT

Related Packages

vue-eyein-translation

Vue 2-3 translation plugin for Vite

4,763 0
@yapyak/nuxt

Nuxt module for yapyak.

817 32
@vintl/nuxt

Nuxt Module for VIntl integration

9,922 2
@brc-dd/nuxt-i18n

Minimal module for i18n with locale auto-imports & localized routing

898 12

Version History

Version Released License
1.1.10 MIT
1.1.9 MIT
1.1.8 MIT
1.1.7 MIT
1.1.6 MIT