I18n plugin for web apps using JS frameworks
Top 70.5% on sourcepulse
This project provides frontend plugins for automatic web page translation, targeting developers building multi-language applications with frameworks like Vue and React. It simplifies internationalization by automatically detecting and translating text content without requiring source code modifications, supporting various translation services and build tools.
How It Works
The plugin integrates with build tools (Webpack, Vite, Rollup) to scan project files for translatable text. It leverages configurable translator services (Youdao, Google, Baidu, Volcengine, or custom) to translate detected strings. The translated content is then managed in language files, allowing for dynamic language switching within the application.
Quick Start & Requirements
npm install vite-auto-i18n-plugin --save-dev
or webpack-auto-i18n-plugin --save-dev
.Highlighted Details
full-auto
and semi-auto
translation modes.Maintenance & Community
The project is actively maintained with frequent updates. A WeChat group is available for community support.
Licensing & Compatibility
Licensed under the MIT License, allowing for free commercial use and modification.
Limitations & Caveats
Google Translate usage may be subject to rate limits. The deepScan
option is experimental. Some AI translation models may have longer processing times.
3 days ago
Inactive