描述
Translating a WordPress website should not be a painful, time-consuming chore.
For years, localizing WordPress plugins and themes meant relying on clunky desktop software like Poedit, copying strings line-by-line in manual PO editors, or dealing with expensive translation services. To make matters worse, the moment a plugin or theme updates, custom translation files get wiped out instantly—ruining hours of hard work.
AF Translate redefines WordPress localization for the modern web.
Built directly into your WordPress dashboard, AF Translate bridges traditional .po / .mo / .json file management with cutting-edge Artificial Intelligence. It automatically scans your active setup, generates clean .pot translation templates on the fly, and translates thousands of interface strings in a single click using your own API keys for OpenAI (GPT-4o), Anthropic Claude, Google Gemini, xAI (Grok), DeepL, and Google Translate.
Whether you need to fix a quick typo, generate script translations for modern React/Gutenberg components, or translate giant commercial plugins into dozens of global languages, AF Translate delivers instant, developer-grade results without monthly middleman fees.
🚀 Why AF Translate Beats Legacy PO Editors
- Native AI Bulk Automation: Why translate strings manually one by one? Run automated background processing to localize entire plugins and themes in seconds.
- Complete JavaScript & Gutenberg Support (
wp.i18n): Full native compatibility with WordPressl10n.phpand JavaScript translation standards. Automatically extracts and compiles both.moand.jsonscript translation payloads. - 100% Update-Proof Guarantee: Translations saved inside plugin or theme folders get erased during updates. AF Translate safely isolates your custom work in
wp-content/uploads/af-translate/, keeping your localizations permanently safe. - Zero Frontend Performance Loss: Heavy translation suites degrade database queries and slow down Google Core Web Vitals. AF Translate operates exclusively inside the WordPress admin area, ensuring 0.00ms impact on public page load speed.
- Automatic POT Template Generator: Missing a
.potfile? AF Translate parses raw PHP and JS source code to compile fresh, standards-compliant translation templates instantly. - Visual Side-by-Side Editor & Staging Sandbox: Audit, edit, and refine AI-translated drafts before committing them to production.
- Bring Your Own API Keys (Zero Markup): Connect directly to official API endpoints. Pay pennies per million characters directly to providers like OpenAI, Claude, or DeepL instead of inflated plugin subscription fees.
What You Get With AF Translate
- Instant Auto-Discovery: The dashboard automatically finds all translatable text across installed plugins, active themes, parent/child layers, and core WordPress strings.
- Multi-LLM Context Engine: Keeps HTML tags, shortcodes, PHP placeholders (
%s,%d), and developer variables completely intact during AI translation. - Delta Compilation Engine: Smart change tracking compiles only modified strings, saving CPU cycles and drastically reducing server I/O overhead.
- Multi-Tier Cache Purging: Automatically flushes WordPress core textdomain registries, persistent object caches, and LiteSpeed/Nginx reverse-proxy headers upon saving.
- Import & Export Workflows: Effortlessly import existing
.poand.mofiles or export compiled assets for external deployment.
Supported AI & Cloud Translation Engines
Take total control over cost and translation quality by switching between world-class AI models:
1. Advanced AI & Large Language Models (LLMs)
- Anthropic Claude (Claude 3.5 Sonnet): The absolute highest precision engine for preserving code syntax, HTML formatting, and developer variables.
- OpenAI (GPT-4o & GPT-4o Mini): Industry leading contextual understanding for natural, human-sounding localized interfaces.
- Google Gemini (Flash & Pro): High-speed, cost-effective LLM processing designed for massive, high-volume translation projects.
- xAI (Grok 4): Deep semantic analysis for complex software UI terminology.
2. Specialized Neural Machine Translation (NMT)
- DeepL Pro & Free API: The gold standard for European languages, with native support for both commercial and free-tier API keys.
- Google Translate Cloud: Unrivaled speed and coverage across 100+ global languages and regional dialects.
- Microsoft Azure Translator: Enterprise cloud translation with compliance-friendly regional data hosting.
- Lecto AI: Optimized, high-efficiency translation routing for budget-conscious workflows.
Configuration & Usage Guide
Automate your localizations smoothly using our optimized interface sections:
- The Translation Workspace: Review, edit, and compare original source strings right next to AI translation drafts in an interactive side-by-side view.
- Bulk AI Translation: Run automated background processing to localize thousands of text strings simultaneously without server timeouts.
- The Project Dashboard: View overall localization health, project summaries, and active language configurations at a glance.
- Track Language Progress: Check your real-time completion meter to view translated vs. untranslated strings.
- Add New Languages: Select from over 100+ supported global languages and regional dialects to initialize new translation files instantly.
- Import Assets: Seamlessly upload and import existing
.potranslation files from external sources. - Plugins Dashboard: Manage, update, and deploy translations for all installed extensions from a single screen.
- Themes Dashboard: Control localization states for active parent themes, custom layouts, and child layers.
- AI Settings Setup: Choose your primary default AI translation engine to handle automated runs.
- Translation Providers Configuration: Enter your API credentials for DeepL, Google Translate, Microsoft, and Lecto AI.
- Advanced AI Models Config: Connect premium LLM engines like OpenAI and Anthropic Claude, complete with custom system prompts.
- More Advanced AI Models Config: Fine-tune your keys and custom parameters for xAI (Grok) and Google Gemini.
Multilingual Demo Sites
These multilingual demo sites can be built within 5 minutes with a one-click demo import and absolutely no coding hassle. View all available starter sites here
- English: CoverNews | MoreNews | ChromeNews
- Spanish: Espanol CoverNews | Spanish News MoreNews | Actualización ChromeNews
- Russian: Русский блог ChromeNews | Russian Nova MoreNews | Русский CoverNews
- German: Deutsch CoverNews | German Cars MoreNews | Deutsche Mode ChromeNews
- French: Voyage France ChromeNews | French News MoreNews | Actualités ChromeNews
- Chinese: China News ChromeNews | China Today MoreNews | China News CoverNews
- Hindi: भारतीय CoverNews | Times India MoreNews | विश्वविद्यालय पत्रिका ChromeNews
- Japanese: アニメ ChromeNews | News Japan MoreNews | 日本語 CoverNews
Discover More Ecosystem Products From AF Themes
The most flexible WordPress themes and plugins crafted for the future web.
Build Full Websites in Minutes with AF Companion
This companion plugin provides you with access to hundreds of beautiful starter demo websites featured on a single dashboard.
* Pre-made Full Website Starter Demos: Get access to beautiful niche presets.
* One Click Demo Import: Choose the demo that best meets your needs, click import, and you’re ready!
* Your Website Live in Minutes: Instantly deploy pages without design delays. Enhance your website further by unlocking premium layouts through our All Themes Plan Bundles.
Newspaper Ecosystem using Widgets, Elementor, Gutenberg Blocks & Patterns
Build a modern magazine framework with page-builder-like features using Elementor and native Gutenberg enhancements:
Free Themes from AF Themes
- CoverNews – Clean and versatile foundation for any professional brand.
- ChromeNews – Professional layout engine tailored explicitly for news portals.
- MoreNews – Tailored multi-content structures ideal for heavy publishers.
- Newsphere | DarkNews | BroadNews | EnterNews | Newsium | Newsever | Shopical | StoreCommerce | Storeship | Elegant Magazine
- Discover more Free Themes.
Premium Themes from AF Themes
- CoverNews Pro | ChromeNews Pro | MoreNews Pro | Newsphere Pro | DarkNews Pro | BroadNews Pro | EnterNews Pro | Newsium Pro | Newsever Pro | Shopical Pro | StoreCommerce Pro | Storeship Pro | Elegant Magazine Pro
- Explore all Premium Themes.
Free WordPress Plugins
- AF Companion – Streamlined layout installer.
- Templatespare – Ready-to-use template patterns library.
- WP Post Author – Advanced multi-author or guest author assignments.
- Blockspare | Elespare | Latest Posts Block Lite | Magic Content Box Lite
Premium WordPress Plugins
屏幕截图












安装
Setting up AF Translate takes less than 2 minutes. Follow this step-by-step quick-start guide to install the plugin, connect your AI API keys, and run your first automated bulk translation.
Step 1: Install & Activate AF Translate
Option A: Directly from your WordPress Dashboard (Recommended) 1. Navigate to Plugins > Add New Plugin in your admin sidebar. 2. Search for “AF Translate” or “AF Translate AI”. 3. Click Install Now next to AF Translate, then click Activate.
Option B: Manual Zip Upload
1. Download the plugin zip package from WordPress.org.
2. Go to Plugins > Add New Plugin > Upload Plugin.
3. Choose the af-translate.zip file and click Install Now.
4. Click Activate Plugin.
Step 2: Configure Your AI Translation Provider (API Keys)
AF Translate uses a Bring Your Own Key (BYOK) model so you get direct wholesale API pricing without middleman subscription markups.
- In your WordPress sidebar, go to AF Translate > AI Settings or Translation Providers.
- Select your preferred default AI translation engine:
- OpenAI: Enter your API key and choose your preferred model (
gpt-4oorgpt-4o-mini). - Anthropic Claude: Paste your Claude API key (
claude-3-5-sonnet) for bulletproof HTML and code placeholder preservation. - Google Gemini: Enter your Gemini API key for ultra-fast, cost-effective high-volume translation.
- xAI (Grok): Input your Grok API key for deep contextual language understanding.
- DeepL Pro / Free: Add your DeepL key (supports both standard commercial keys and
:fxfree-tier keys). - Google Translate / Microsoft / Lecto AI: Connect your credentials in the Translation Providers tab.
- OpenAI: Enter your API key and choose your preferred model (
- Click Save Changes. You can test your connection instantly inside the dashboard.
Step 3: Select a Plugin, Theme, or WordPress Core to Translate
- Navigate to AF Translate > Plugins or AF Translate > Themes.
- Locate the plugin or theme you want to localize (e.g., WooCommerce, Elementor, your active child theme, or WordPress Core).
- Click Manage Translations next to your selected project.
Step 4: Add a New Language or Generate a POT Template
- If a
.potfile already exists: Click Add New Language, select from over 100+ global languages or regional dialects, and click Create File. - If NO
.potfile exists (Missing Language Template): Click Generate Template (POT). AF Translate’s smart code parser will automatically scan all PHP and JavaScript files in the project and compile a fresh, working.pottemplate instantly.
Step 5: Run 1-Click Automated Bulk AI Translation
- Open your newly created language workspace.
- Click the Bulk AI Translation button at the top of the workbench.
- Select your AI engine, set your chunk batch size, and click Start Bulk Translation.
- Watch the progress bar as the AI processes, translates, and formats hundreds of strings in background loops without triggering PHP server timeouts.
- Review the translated text side-by-side in the visual sandbox editor and tweak any specific strings manually if desired.
Step 6: Save, Compile & Auto-Deploy (wp.i18n Compatible)
- Click Save & Compile.
- AF Translate automatically generates and compiles:
.posource files for human inspection..mobinary files for WordPress PHP execution..jsonscript translations for modern Gutenberg React components and JavaScriptwp.i18nscripts.
- Your compiled translations are safely stored in
wp-content/uploads/af-translate/—making them 100% update-proof so they will never be overwritten when plugins or themes update!
常见问题
-
Does this plugin affect frontend loading speeds or Core Web Vitals?
-
No. Speed protection is a core architecture priority. All automated background AI generations and API calls execute strictly inside the admin dashboard. It introduces zero visitor-facing scripts, keeping your public loading times pristine.
-
Which AI providers and models are supported?
-
AF Translate features native API integration for top-tier artificial intelligence platforms including OpenAI (GPT-4o / GPT-3.5), Anthropic Claude (3.5 Sonnet / Haiku), Google Gemini, xAI Grok, and DeepL Translate (Free and Pro).
-
Is AF Translate a free plugin, and are there translation caps?
-
The plugin framework is 100% open-source and free. There are no artificial word-count limits or hidden middleman markups. You bring your own API key and pay only the exact micro-costs billed directly by providers like OpenAI, Google, or Anthropic.
-
How does AF Translate handle JavaScript script translations (`wp.i18n`)?
-
As of version 5.0.0, AF Translate natively supports WordPress core
l10n.phploading routines. It automatically extracts JS textdomain strings, compiles matching.jsontranslation chunks, and places them in the correct asset pathways for modern React and Gutenberg block scripts. -
Is AF Translate compatible with Loco Translate, WPML, or Polylang?
-
Yes. AF Translate operates strictly on native WordPress i18n standards (
.po,.mo,.json, and.l10n.php). You can use it as a high-speed AI replacement or companion for Loco Translate, or use it to generate interface language bundles for site-wide multilingual systems like WPML and Polylang. -
Does it support Gutenberg Block Themes and Full Site Editing (FSE)?
-
Yes. The analysis engine thoroughly scans block patterns, FSE theme block templates, and JavaScript text domains to build accurate translation catalogs for modern block-based WordPress environments.
-
Where are the generated translation files stored?
-
To protect your translations from being erased when a theme or plugin updates, all custom files are safely isolated inside
wp-content/uploads/af-translate/. This guarantees your work remains completely untouched during continuous theme and plugin update lifecycles. -
Which AI model is best for protecting code syntax during translation?
-
The Anthropic Claude 3.5 Sonnet engine is highly recommended. It enforces a strict rule set that isolates web layout text from underlying code variables, preventing the AI from modifying developer symbols, shortcodes, or HTML tags.
-
Can I use both free and commercial keys for DeepL automation?
-
Yes. The automated DeepL configuration panel natively recognizes and routes both commercial API keys and free tier subscriptions (which typically end with the
:fxidentifier format). -
Can I translate themes or plugins that don’t have default language files?
-
Yes! Our smart built-in code reader automatically parses the raw file structures and compiles a fresh, working
.pottranslation template for you with one click. -
Can I export my translation files for deployment or distribution?
-
Yes. You can instantly download complete translation bundles (containing paired
.po,.mo,.json, and.l10n.phpassets) in a compressed.ziparchive directly from your dashboard for easy migration or inclusion in official release packages. -
Is my site data private and GDPR compliant when using AI features?
-
Yes. AF Translate only sends raw text string labels to your designated API provider during explicit translation runs. No user accounts, database entries, customer records, or site metadata are ever collected, stored, or transmitted to external servers.
-
Do I need an API key to use the AI translation features?
-
Yes. For premium engines like OpenAI, Claude, Gemini, and Grok, you will need to input your own API key. This gives you direct control over your usage costs without paying middleman markups.
-
How does the bulk AI engine handle large translation tasks without timing out?
-
The bulk translation module uses asynchronous chunk processing and client-side staging queues. By breaking hundreds of string rows into small, managed request packages, it avoids PHP memory overflows and max execution timeouts.
-
Can this plugin automatically translate my live page or post content?
-
AF Translate is specifically engineered to translate WordPress themes, plugins, and core system strings (the code-level interface). If you need to translate your actual post and page content dynamically, this plugin works perfectly alongside frontend content switchers.
-
Yes. Our system uses advanced structural context framing when communicating with the AI. This explicitly instructs the models to leave shortcodes, HTML tags, and PHP string variables completely untouched while translating only the human-readable text.
-
What administrative user permissions are required to use this plugin?
-
To ensure server safety, block unauthorized text injections, and secure file modification pathways, execution access is limited strictly to user accounts carrying full Administrator capabilities.
评价
此插件暂无评价。
贡献者及开发者
「AF Translate – AI Translation Editor, PO Editor & POT Generator for WordPress」是开源软件。 以下人员对此插件做出了贡献。
贡献者更新日志
5.0.0
- Architected native support for JavaScript script translations (
wp.i18n), establishing full compatibility with WordPress corel10n.phploading routines. - Unified JS script translation extraction and compilation across all core workflows, including new language creation, PO/JSON file imports, string edits, and automated language updates.
- Engineered an intelligent Delta Compilation Engine to detect string mutations and selectively build only modified translation payloads, drastically reducing server I/O overhead.
- Refined dynamic asset path resolution and textdomain script mapping to ensure bulletproof JSON delivery across complex custom plugin directory layouts.
- Expanded the multi-tier runtime cache purging layer to automatically invalidate script translation registries and force instant browser/edge updates upon compilation.
- Hardened security architecture across all filesystem and translation AJAX endpoints with strict nonce verification, capability checks, and path traversal mitigations.
4.0.0
- Major architectural refactoring of the Core AI Engine Subsystem Layer, consolidating multiple LLM and NMT request loops into unified central helper utilities.
- Introduced standardized, deeply-sandboxed execution methods for remote API requests, credential retrieval, and system prompt formatting to simplify long-term code maintenance.
- Resolved a critical synchronization bug on production Linux servers where bulk AI-translated strings failed to load back into the workbench editor rows after saving.
- Engineered a proactive multi-tier Cache Invalidation Layer to flush WordPress core textdomain performance registries and persistent object caches immediately upon asset compilation.
- Integrated automated LiteSpeed reverse-proxy header purging to ensure live server web servers drop stale translations instantly.
- Hardened the JavaScript AJAX staging interceptor by deploying dynamic cache-busting timestamp parameters to completely bypass aggressive browser and edge proxy cache states.
3.0.0
- Introduced the brand-new WordPress Core translation engine, allowing users to localize and automate AI translation pipelines for core system software and WordPress updates.
- Completely restructured and re-ordered the admin sidebar submenus and horizontal navigation tabs to prioritize high-volume user workflows (Plugins and Themes).
- Simplified administration terminology (e.g., Dashboard, Site Languages) to reduce cognitive friction for intermediate users.
- Performance-optimized the dashboard activity log by introducing a strict 20-entry cap and disabling database option autoloading to eliminate front-end memory bloat.
- Resolved an internal data architecture mismatch between the AJAX event tracking logger and the overview dashboard interface keys.
- Fixed a Unix Epoch time calculation bug (“57 years ago”) by correctly binding MySQL datetime stamps to human-readable localized difference utilities.
2.0.0
- Complete structural and design overhaul optimized for fast, zero-delay production environments.
- Integrated the centralized AF Translate AI Settings Hub supporting 8 elite cloud translation engines and advanced large language models.
- Implemented background bulk automation pipelines to process dense layout text records safely without crashing local server partitions.
- Added an interactive staging sandbox to let users review automated AI translation cards before saving changes permanently to the server file structure.
- Hardened internal directories by routing all output tracking variables to a highly secure path inside the main uploads directory.
1.0.0
- Initial Public Release.
- Integrated memory-safe source code string parsing token architecture.
- Integrated sidebar editor panel with dynamic translation lookup references.
- Implemented path protection mapping strictly inside the WP uploads directory layout for permanent asset retention.
- Hardened internal file system interactions with strict input validation to prevent directory traversal threats.
