Linux 软件免费装
Banner图

EWA AI String Assistant for Loco Translate

开发者 errorwebagency
更新时间 2026年9月17日 23:21
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPL v2 or later
版权网址: 版权信息

标签

translation gettext localization ai loco translate

下载

1.8.4

详情介绍:

EWA AI String Assistant for Loco Translate integrates state-of-the-art AI translation directly into the Loco Translate editor for WordPress plugins and themes. On WordPress 7.0+, it seamlessly leverages the official, native WordPress AI Client (wp_ai_client_prompt) and connectors configured centrally in WordPress Core, requiring zero plugin-level API keys. For WordPress 6.x or specialized setups, it provides an Advanced Direct Connection mode supporting OpenRouter (Anthropic Claude, OpenAI GPT, Google Gemini, DeepSeek, Meta Llama), locally hosted or remote Ollama instances, or any custom OpenAI-compatible API endpoint. Key Features Important Disclaimer & Recommendations

安装:

  1. Ensure the Loco Translate plugin is installed and activated.
  2. Upload the ewa-ai-string-assistant-for-loco-translate folder to your /wp-content/plugins/ directory, or install the ZIP file via Plugins → Add New → Upload Plugin.
  3. Activate the plugin through the Plugins menu in WordPress.
  4. Navigate to Settings → EWA AI String Assistant in the WordPress admin menu.
  5. Choose your AI Connection Mode:
  6. WordPress AI Client (Recommended): Available on WordPress 7.0+. Uses credentials and connectors configured in Settings → Connectors.
  7. Advanced Direct Connection: Configure OpenRouter, Ollama, or a custom OpenAI-compatible endpoint directly.
  8. Go to Loco Translate → Plugins or Loco Translate → Themes, and open any PO translation file in the editor.
  9. Click the 🤖 AI Translate button in the editor toolbar, review the settings, and click Start Translation.

屏幕截图:

  • Advanced translation settings panel on the settings screen (Temperature, Batch Size, Max Retries, "Skip strings that already have a translation", and custom System Prompt editor).
  • Loco Translate PO file editor integration, displaying the dual language selectors ("From: [Source] ➔ To: [Target]"), the "🤖 AI Translate" toolbar action button, the active AI provider/model badge (e.g. "WordPress AI Client · deepseek/deepseek-v4.1-flash"), and the Gettext strings table.

升级注意事项:

1.8.4 Upgrade to version 1.8.4 for bidirectional translation, full WordPress locale catalog (180+ locales including English dialects), and the dual language selector in Loco Translate. 1.8.3 Upgrade to version 1.8.3 for Plugin Check compliance cleanup and final WordPress.org submission hardening. 1.8.2 Upgrade to version 1.8.2 for the Loco Translate editor Stop button contrast fix. 1.8.1 Upgrade to version 1.8.1 for corrected native WordPress AI Client execution, strict transport selection, and final WordPress.org compliance hardening. 1.8.0 Upgrade to version 1.8.0 to use the native WordPress 7.0+ AI Client and Connectors with zero API key configuration, or continue using Advanced Direct Connection mode seamlessly. 1.7.0 Upgrade to version 1.7.0 for WordPress.org compliance enhancements, improved namespacing, full external service disclosures, and enhanced admin notice handling.

常见问题:

Where do I find the plugin settings menu?

You can find the plugin settings by navigating to Settings → EWA AI String Assistant in the WordPress administrator sidebar menu. A direct Settings link is also available on the Plugins screen (plugins.php) right under the plugin name. When editing any .po file in Loco Translate (Loco Translate → Plugins or Loco Translate → Themes), the AI translation controls and status badges appear automatically directly above the Gettext translation table.

Does this plugin require Loco Translate?

Yes. EWA AI String Assistant for Loco Translate is an add-on that specifically extends Loco Translate. Loco Translate must be installed and active.

Is an API key required to use the plugin?

On WordPress 7.0+ with the native WordPress AI Client mode active, no plugin-level API key is required — credentials and connectors are managed centrally by WordPress Core (Settings → Connectors). In Direct Connection mode, an API key is required for OpenRouter or commercial OpenAI endpoints, but local Ollama instances require no API keys.

Does this plugin send data to third parties automatically?

No. No data is ever sent automatically or in the background. Data is sent to the configured AI provider only when an administrator explicitly initiates an action, such as testing the connection or translating strings.

Does the plugin overwrite existing translations?

No. By default, the plugin only translates untranslated strings. Existing translated strings in your PO file are preserved intact.

How does the plugin handle plural forms?

The plugin parses the PO file header for plural rules (Plural-Forms: nplurals=...) and sends both singular and plural source strings to the AI. The AI generates all required plural variations, which are validated against the target language's plural count before being written to the file.

What happens if an API request fails?

The plugin includes exponential backoff retry logic for transient errors (such as network hiccups or rate limits). If a permanent error occurs (e.g. 401 Invalid Key or 404 Model Not Found), the job halts cleanly and provides an actionable error message. Failed items are never falsely flagged as fuzzy.

How are translations saved?

Translations are written atomically to the .po file on your server using WP_Filesystem and standard locking mechanisms. The plugin then automatically compiles the binary .mo file using WordPress POMO classes, making the translations immediately available to WordPress.

Can I use this plugin for commercial websites?

Yes. The plugin is licensed under GPL v2 or later and can be used on any number of personal or commercial websites without restrictions.

Who is responsible for backups and translation accuracy?

The site administrator is solely responsible for creating and maintaining backups of translation files prior to using the plugin, and for reviewing generated translations for contextual correctness. The developers and Error Web Agency (EWA) assume no liability for machine translation errors, unintended file overwrites, data loss, or third-party API costs.

更新日志:

1.8.4 1.8.3 1.8.2 1.8.1 1.8.0 1.7.0 1.6.1 1.6.0 1.0.0