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
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
Version History
| Version | Released | License |
|---|---|---|
| 1.0.1 | MIT | |
| 1.0.0 | MIT | |
| 0.0.2 | MIT |