i18next-cli-plugin-vue

i18next-cli plugin to extract Javascript/Typescript from Vue components
1,481 2
Install
npm install i18next-cli-plugin-vue
Latest Version:1.0.1
License:MIT
Last Updated:Jan 23, 2026
Links: GitHub  ·  npm
Maintainer: yangzhongtian

i18next-cli Vue plugin

GitHub branch check runs NPM Downloads GitHub License

This plugin is a simple TS/JS code extractor for Vue component files, enabling i18next-cli extract to find the translation keys in <script> and <template>.

Getting started

Simply import i18next-cli-plugin-vue and add it to plugins array. Here's an example i18next.config.js file:

import { defineConfig } from "i18next-cli";
import i18nextVuePlugin from "i18next-cli-plugin-vue";

export default defineConfig({
	locales: ["en", "zh"],
	extract: {
		input: "src/**/*.{ts,vue}",
		output: "src/assets/i18n/{{language}}.json",
		mergeNamespaces: true,
	},
	plugins: [
		i18nextVuePlugin
	]
});

Related Packages

vue-i18next

Vue plugin for I18Next integration

6,339 47
@panter/vue-i18next

i18next wrapper for vue

377,878 172
i18next-vue

i18next integration for Vue

3,787,169 101
i18n-ally

🌍 All in one i18n extension for VS Code

54,317

Version History

Version Released License
1.0.1 MIT
1.0.0 MIT
0.0.2 MIT