Linux 软件免费装
Banner图

GeoLang for Block Editor

开发者 nickdigitalprojects
更新时间 2026年10月11日 15:58
PHP版本: 7.4 及以上
WordPress版本: 7.1.2
版权: GPLv2 or later
版权网址: 版权信息

标签

language translation multilingual block editor language switcher hreflang

下载

1.0.1 1.2.1 1.0.0 1.1.0 1.2.0

详情介绍:

GeoLang for Block Editor is a multilingual plugin designed specifically for the WordPress block editor. It allows you to create and manage translations for your posts, pages, custom post types, block templates, and template parts without leaving the WordPress admin interface. Requirements & Compatibility: Key Features: Free vs Pro (coming soon): The Free version includes all essential multilingual features: block editor integration, IP detection (external APIs), SEO, templates and template parts, menu translation, and language switcher. GeoLang Pro is currently in development and not yet available. Planned Pro features include:

安装:

  1. Upload the plugin files to the /wp-content/plugins/geolang-for-block-editor directory, or install the plugin directly through the WordPress plugins screen.
  2. Activate the plugin through the 'Plugins' screen in WordPress
  3. Navigate to Settings > GeoLang to configure your languages and detection settings

屏幕截图:

  • Template Parts translation and linking interface
  • General settings and language configuration
  • Menu Translator interface
  • IP Detection settings page

升级注意事项:

1.2.0 Feature and bug fix release: full Site Editor template translation, geo redirects no longer cached permanently, archives and Query Loop blocks no longer mix languages, per-language locale switching, hardened IP detection, and a compatibility warning for non-block editors. 1.1.0 Feature release: 90+ supported languages with flags, expanded IP detection, full SEO locale coverage, and language column for all post types. 1.0.1 Bug fix release: adds an option to disable automatic menu translation and fixes mobile navigation menu rendering. 1.0.0 Initial release of GeoLang for Block Editor.

常见问题:

Does this plugin work with the Classic Editor or page builders?

No. GeoLang requires the WordPress block editor and is not compatible with content built in Elementor, Divi, WPBakery, or sites where the Classic Editor fully replaces the block editor. Template, template-part and navigation translation additionally require a block theme (FSE). A warning notice is shown in the admin when an incompatible builder is detected.

Does IP detection work with page caching, VPNs, or Cloudflare?

IP detection runs on the server on the visitor's first page load. A few notes:

  • Page caching: aggressive full-page caches (WP Super Cache, LiteSpeed Cache, Cloudflare APO, etc.) may serve a cached page before detection runs, or cache one language for everyone. If you enable IP detection, exclude the homepage and other unprefixed entry URLs from the page cache, or verify your cache is compatible with per-language variations.
  • VPNs / travel: visitors using a VPN or browsing from abroad will be detected by their IP location. They can always override the detected language with the language selector — their choice is remembered in a cookie.
  • Proxies / CDNs: for security, GeoLang only trusts forwarding headers (X-Forwarded-For) when the connecting IP is a trusted proxy. If your site sits behind a reverse proxy or CDN, add its IPs/ranges to the geolang_trusted_proxies filter or the trusted_proxies option.

How does IP-based language detection work?

The Free version uses external APIs (ipapi.co, ipwho.is) to detect the visitor's location and automatically switch to the appropriate language. GeoLang Pro (in development) will add support for a local MaxMind GeoLite2 database for unlimited, privacy-compliant detection with no API rate limits.

Can I translate navigation menus?

Yes, GeoLang supports translation of both classic WordPress menus and block editor navigation blocks (Full Site Editing).

How does Switzerland canton-based detection work?

Switzerland has four official languages (German, French, Italian, Romansh) distributed across 26 cantons. Unlike most plugins that default all Swiss visitors to German, GeoLang detects the visitor's canton from the IP geolocation API and assigns the correct language:

  • Ticino (TI) → Italian
  • Geneva (GE), Vaud (VD), Neuchâtel (NE), Jura (JU) → French
  • Zurich (ZH), Lucerne (LU), Basel, etc. → German
  • Bern (BE) → German or French based on browser preference
  • Fribourg (FR), Valais (VS) → French or German based on browser preference
  • Grisons (GR) → Romansh, Italian, or German based on browser preference
You can also manually override the canton from the IP Test panel in the admin settings for testing purposes.

Does this plugin support multilingual SEO?

Yes, GeoLang automatically generates hreflang tags and HTML lang attributes. It also integrates with RankMath and Yoast SEO for multilingual sitemaps.

What are the differences between Free and Pro versions?

The Free version includes all core multilingual features: block editor integration, path-based routing, IP detection (external APIs), Switzerland canton-aware detection, SEO (hreflang, sitemaps, Yoast, Rank Math), template parts and menu translation, language switcher, and post duplicator. GeoLang Pro is currently in development (not yet available) and will add MaxMind local database, machine translation with DeepL, bulk operations, advanced redirect, import/export, advanced revisions, Paid Memberships Pro integration, and priority support.

更新日志:

1.2.1 1.2.0 1.1.0 1.0.1 1.0.0