Linux 软件免费装
Banner图

Blocklingo - AI Translation & Multilingual

开发者 addblack
更新时间 2026年10月31日 16:20
PHP版本: 8.1 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

translate gutenberg translation multilingual ai translation

下载

0.14.0 0.14.1

详情介绍:

Free AI translation for WordPress Make your WordPress website multilingual with AI - without paying for another translation subscription. Blocklingo translates pages, posts, Gutenberg blocks, menus and SEO metadata with the translation provider you choose. Connect your own API key for Google Translate, DeepL, Gemini or Claude, or use the AI provider already set up in WordPress (7.0 and later). Whether you build a multilingual site for yourself or manage WordPress sites for clients, Blocklingo keeps the translations, the costs and the content under your control. AI-powered translation, your own API key Choose the provider that fits your languages and budget: You pay your provider directly, at their price. Google, DeepL and Gemini offer free allowances. There is no Blocklingo account and no Blocklingo translation subscription. Add a glossary of brand names that must never be translated, a style guide and extra instructions for AI providers. Gutenberg-friendly translation Blocklingo is built for the block editor and block themes. Block texts and attributes are translated in the browser and saved back as valid blocks - no "This block contains unexpected or invalid content" after translation. SEO-friendly multilingual websites Translate more than pages WordPress, theme and plugin translation files are installed automatically for every language you add. Bulk translation "Translate everything" machine-translates the whole site into a language at once: categories, tags, menus, header and footer, pages and posts. Everything is created as drafts, so you review before publishing. It shows progress and time left, and stops with a clear message when something blocks it (a rejected API key, no credit, a rate limit). Language switcher A Language switcher block for block themes, the [blocklingo_switcher] shortcode, the blocklingo_language_switcher() template tag, or "Add to menu" for classic themes without code. Built for WordPress developers Why Blocklingo?

安装:

  1. Plugins > Add New > Upload Plugin, choose the zip, activate.
  2. Settings > Blocklingo:
  3. The default language is taken from Settings > General > Site Language. Add the other languages.
  4. Machine translation: choose a provider, paste the API key, press "Load models" and pick a model. Keys can also be set in wp-config.php: define( 'BLOCKLINGO_CLAUDE_KEY', '...' ); (BLOCKLINGO_GEMINI_KEY, BLOCKLINGO_GOOGLE_KEY, BLOCKLINGO_DEEPL_KEY).
  5. Glossary: brand names that must never be translated, one per line.
  6. Settings > Permalinks: any pretty permalink structure (not "Plain").
  7. Open a page in the editor, Language panel in the sidebar: "Translate" creates the translation as a draft. Review and publish.
  8. Translate the front page and the posts page so every language has its own home.
  9. Header and footer: on the settings page, create language copies of the header and footer, then edit their menus in the Site Editor.
  10. Add the "Language switcher" block to the header (Site Editor). Classic theme: Settings > Blocklingo > Header and footer > Language switcher > "Add to menu", or use the [blocklingo_switcher] shortcode.
  11. To translate everything at once: Settings > Blocklingo > "Translate everything into ...", then review and publish the drafts.
  12. Settings > Language strings: press "Scan site", then "Translate empty" (or type translations) and save.
  13. If the site already has Cyrillic slugs, use "Convert to Latin" at the bottom of the settings page.

屏幕截图:

  • Language panel in the block editor: page language, its translations and one-click re-translation.
  • Overview: how much of the site is translated, and "Translate everything" for the rest.
  • Language strings: theme and plugin texts without an official translation, translated by hand or by machine.
  • Language switcher block in the site header.

常见问题:

What happens to existing content?

On activation every existing post is assigned to the default language. Nothing else changes until you add translations.

Does it need the block editor (Gutenberg)?

It is made for it: the Language panel, the Translate button and block-safe translation live in the block editor. Content that uses the classic editor is still translated by "Translate everything" (on the server), and the plugin tells you which post types have the block editor turned off.

Does it work with classic themes?

Translations, URLs and SEO work. The language switcher can be added to a theme menu from the settings (no code), with the [blocklingo_switcher] shortcode or with blocklingo_language_switcher(). Per-language header and footer need a block theme.

Which options does the shortcode take?

[blocklingo_switcher display="name" hide_current="1" hide_missing="1"]. display: code, name, flag, flag-code or flag-name (default code). hide_current hides the current language, hide_missing hides languages without a translation of the page.

Which strings does "Language strings" cover?

PHP strings (__(), e(), esc_html_(), _x() ...) used while a page renders, when no translation file covers them. Not covered yet: plural forms (_n()), strings in JavaScript, texts saved in plugin settings (e.g. Contact Form 7 form fields).

What is removed when I delete the plugin?

Nothing, unless you ask for it. By default the links between translations, the language strings and the settings stay, so installing the plugin again brings everything back. To remove them, turn on "Remove all data when the plugin is deleted" (Settings > Blocklingo > Content and sync) before deleting. Posts, terms, menus and template parts in every language always stay - they are content. Deactivating the plugin keeps everything; while it is off, language URLs like /uk/ stop working and translations show up as ordinary posts and pages.

Developer hooks

Functions: blocklingo_languages(), blocklingo_default_lang(), blocklingo_current_lang(), blocklingo_is_language(), blocklingo_is_translatable_type(), blocklingo_get_post_lang(), blocklingo_set_post_lang(), blocklingo_get_post_translations(), blocklingo_get_post_translation(), blocklingo_language_switcher(). Filters: blocklingo_untranslated_blocks, blocklingo_strings_capture, blocklingo_strings_skip_domains, blocklingo_translatable_block_attributes, blocklingo_translatable_meta, blocklingo_per_language_meta, blocklingo_skip_meta_keys, blocklingo_sync_meta_key, blocklingo_sync_taxonomy, blocklingo_translatable_taxonomies, blocklingo_context_max_chars, blocklingo_pre_provider, blocklingo_support_url. Action: blocklingo_translation_created. Queries accept 'lang' => 'uk' or 'all'.

更新日志:

0.14.1 0.14.0 0.13.0 0.12.2 0.12.1 0.12.0 0.11.3 0.11.2 0.11.1 0.11.0 0.10.1 0.10.0 0.9.1 0.9.0 0.8.1 0.8.0 0.7.1 0.7.0 0.6.0 0.5.0