
外掛標籤
開發者團隊
原文外掛簡介
Lifegence AITranslator transforms your WordPress site into a multilingual platform using cutting-edge AI technology from Google Gemini and OpenAI GPT.
Key Features
Advanced AI Translation
Dual AI Engine Support: Choose between Google Gemini API or OpenAI GPT API
High-Quality Translations: Natural, context-aware translations that sound human-written
Intelligent Text Processing: Automatically skips URLs, email addresses, and code blocks
Batch Translation: Optimized API usage with single-request-per-page processing
Multilingual Support
Support for 20+ preset languages including:
English, Japanese (日本語), Korean (한국어)
Chinese Simplified (简体中文), Chinese Traditional (繁體中文)
Spanish, French, German, Italian, Portuguese
Russian, Arabic, Hindi, Thai, Vietnamese, Indonesian
Turkish, Polish, Dutch, Swedish
Plus unlimited custom languages:
Add any language not in the preset list via admin interface
Popular additions: Tagalog, Filipino, Malay, Bengali, Urdu, Persian, Hebrew, Greek, and more
Simple interface: just enter language code and name, click Add
Inline Translation Editor
Visual Edit Mode: Click to edit any translated text directly on your page
Real-time Updates: Changes are immediately visible after saving
Admin Bar Integration: Toggle edit mode with one click from the admin bar
Cache Override: Manually correct AI translations when needed
Performance Optimized
Smart Caching System: WordPress Transient-based caching for lightning-fast page loads
Cache Version Control: Invalidate all translations with one click to force re-translation
Selective Caching: Individual text caching for efficient memory usage
Rate Limit Management: Automatic API request optimization to avoid rate limits
SEO-Friendly
Language Prefix URLs: Clean URL structure like /ko/about, /ja/contact
Hreflang Tags: Automatic hreflang tag generation for proper SEO
Language Attributes: Dynamic HTML lang attribute updates
Search Engine Friendly: Properly indexed multilingual content
Flexible Language Switcher
Multiple display formats:
Dropdown selector
Flag icons
Text links
Custom positioning via shortcode or widget
Requirements
WordPress 5.0 or higher
PHP 7.4 or higher
Either Google Gemini API key OR OpenAI API key
Modern web browser with JavaScript enabled
API Services
This plugin requires external API services:
Google Gemini API: Free tier includes 15 requests per minute
OpenAI API: Pay-per-use pricing (~$0.15 per 1M tokens)
Please review the respective API pricing before use as API usage may incur costs depending on your usage volume.
Developer Hooks
Filters
Modify translation before caching:
add_filter('lg_aitranslator_translation', function($translation, $original, $lang) {
return $translation;
}, 10, 3);
Skip translation for specific content:
add_filter('lg_aitranslator_should_translate', function($should_translate, $content) {
return $should_translate;
}, 10, 2);
Add custom language:
add_filter('lg_aitranslator_languages', function($languages) {
$languages['custom'] = 'Custom Language';
return $languages;
});
Shortcodes
Language switcher dropdown:
[lg_lang_switcher type=”dropdown”]
Language switcher with flags:
[lg_lang_switcher type=”flags”]
Language switcher as list:
[lg_lang_switcher type=”list”]
Privacy Policy
This plugin sends content to external AI services (Google Gemini or OpenAI) for translation. Please ensure you have appropriate permissions to send user-generated content to these services and review their respective privacy policies:
Google Gemini Privacy Policy: https://policies.google.com/privacy
OpenAI Privacy Policy: https://openai.com/privacy/
The plugin does not store any personal data beyond what WordPress normally stores. API keys are stored in the WordPress database using standard WordPress options.
Support
For support, bug reports, or feature requests, please visit:
https://github.com/lifegence/wp-plugin-lifegence-aitranslator
Credits
Developed with ❤️ using:
* Google Gemini API
* OpenAI GPT API
* WordPress Core Functions
