[WordPress] 外掛分享: COCOS Translate

首頁 › 外掛目錄 › COCOS Translate
WordPress 外掛 COCOS Translate 的封面圖片
全新外掛
安裝啟用
—
尚無評分
6 天前
最後更新
—
問題解決
WordPress 5.6+ PHP 7.4+ v1.0.5 上架:2026-10-08

內容簡介

COCOS Translate 讓您的網站輕鬆實現雙語功能,無需修改佈景主題或內容結構。它能將網站從預設語言翻譯成您選擇的語言,並可隨時更改翻譯語言。

【主要功能】
• 整頁翻譯,替換所有可見文本
• 實時翻譯 JS 渲染內容
• 視覺前端編輯器,輕鬆編輯翻譯
• gettext 翻譯,支援佈景主題與外掛字串
• 機器翻譯,支援 Google Cloud Translation
• SEO 友好的網址結構

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.5) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「COCOS Translate」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

COCOS Translate makes your site bilingual without touching your theme or your content structure: it translates your site from its default language into one translation language of your choice. You can change the translation language at any time.
Core features:

Whole-page translation. The rendered HTML is buffered, parsed and every visible text node plus common attributes (alt, title, placeholder, aria-label, meta descriptions, Open Graph / Twitter tags) is replaced with its translation.
Live translation of JS-rendered content. A client-side layer (MutationObserver) translates content injected after page load – WooCommerce Cart/Checkout blocks, Gutenberg-hydrated blocks, AJAX fragments – using the same dictionary, and reports unknown strings so they get translated on the next visit.
Visual front-end editor. Open any page in edit mode, click a string, type the translation, save. Works for content, menus, widgets, theme strings.
gettext translation. Theme and plugin strings that pass through __() / _e() are translatable too.
Machine translation. Google Cloud Translation v2 with your own API key. Translate on demand from the editor, in bulk from the admin, or automatically in the background via WP-Cron. (Other engines are available in COCOS Translate PRO, a separate plugin.)
SEO-friendly URLs. The translated pages live under their own path prefix (e.g. /fr/). hreflang alternate links, x-default, translated / dir and localized permalinks are handled for you.
Language switcher. Shortcode [cc_transla_switcher], a widget, a cc_transla_language_switcher() template tag, an optional floating switcher and optional nav-menu injection.
Built-in page cache for anonymous visitors so translated pages are served without re-parsing.

External services
This plugin can send text to an external machine-translation service. It does so only if you choose “Google Translate” as the machine-translation engine and enter your own API key under Settings → COCOS Translate → Machine translation. With the engine set to “None” (the default), the plugin makes no external requests.
Google Cloud Translation API (v2)

What it is / what it is used for: Google’s machine-translation service, used to translate the strings of your site (page text, menu items, widget text and similar) into your translation language.
What data is sent and when: the text strings to be translated, the source and target language codes, and your Google API key. This happens when you click the machine-translate button in the visual editor, run a bulk “Auto-translate” from the admin, or when automatic background translation (WP-Cron) or translate-on-access is enabled. No visitor personal data is sent — only the site strings that are missing a translation.
Service provider: Google LLC. Terms of Service · Privacy Policy · Cloud Privacy Notice

Links to translate.cocos.codes in this readme and in the plugin’s admin screens are ordinary hyperlinks; the plugin does not contact that site in the background.
Notes / limitations

URL translation uses the sub-directory method (example.com/fr/…). Sub-domains and separate domains are not supported.
On sites with a full-page caching layer in front of PHP, exclude the ?cc-transla-edit requests from that cache.
Very large string tables load into memory per request; let the built-in page cache do its job.

COCOS Translate PRO
This plugin translates your site into one language, with Google Translate on your
own API key. COCOS Translate PRO (https://translate.cocos.codes) is a separate
paid plugin for sites in several languages. It offers:

Several translation languages per site.
One-click AI translation through the COCOS Translate proxy — Google, DeepL,
OpenAI, Claude and Gemini with no provider API keys to manage.
A monthly AI phrase quota with optional top-up packs.
Priority support and automatic updates from translate.cocos.codes.

PRO is optional and is distributed from translate.cocos.codes, not from WordPress.org.

延伸相關外掛

文章
Filter
Mastodon