auto-i18n-translation-plugins  by auto-i18n

I18n plugin for web apps using JS frameworks

created 1 year ago
425 stars

Top 70.5% on sourcepulse

GitHubView on GitHub
Project Summary

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

  • Install via npm/yarn: npm install vite-auto-i18n-plugin --save-dev or webpack-auto-i18n-plugin --save-dev.
  • Requires Node.js.
  • Google Translate may require proxy configuration for users in certain regions.
  • Youdao, Baidu, and Volcengine translators require API key applications.
  • Official documentation and example projects are available.

Highlighted Details

  • Supports automatic translation without source code changes.
  • Integrates with Vite, Webpack, and Rollup.
  • Offers multiple translation services including Youdao, Google, Baidu, and Volcengine (AI models).
  • Provides options for full-auto and semi-auto translation modes.
  • Allows for custom translator implementations.

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.

Health Check
Last commit

3 days ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
4
Star History
146 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.