Docs / Get started
Early access: subdirectory mode is switched on per project. Email support@eachlang.com before you install the plugin.
WordPress plugin
Serve translated pages at /fr/, /de/ and other subdirectories of your own domain. Visitors and search engines see the same addresses as before. The plugin fetches each translated page from Eachlang and serves it from your WordPress.
Before you start
- WordPress 5.8 or newer, PHP 7.4 to 8.2.
- An Eachlang project with your domain verified (DNS TXT record).
- Your project's public key (
pk_…) from the dashboard.
1. Get the plugin
Download eachlang-wordpress.zip. Then email support@eachlang.com with your domain and the languages you want under subdirectories. We switch on subdirectory mode for those languages in your project.
In WordPress, go to Plugins › Add New › Upload Plugin, choose the zip and click Activate.
2. Connect your project
- Open Settings › Eachlang.
- Paste your public key.
- Set the site language (for example
en) and the translation languages (for examplefr, de). To use a different URL prefix, writept-br=br: the page opens at/br/…. - Click Save.
3. Add the language switcher
Pick one or more: the floating switcher (bottom right), a menu location, or the [eachlang_switcher] shortcode on any page. Your source pages also get hreflang links for every language and x-default.
4. Check it works
Open https://your-site.com/fr/. The response header X-Eachlang: translated means the page came from Eachlang. If you see X-Eachlang: fallback; reason=…, the page was shown in your site language. The reasons are listed below.
Moving from another subdirectory translation plugin
If your previous plugin's settings are still in the database, the settings page shows them. Click Use the same languages and URLs to copy the languages and prefixes, then deactivate the old plugin. Two plugins cannot handle /fr/ at the same time.
The same button imports translated slugs (for example /fr/a-propos/). Eachlang serves the original slug (/fr/about/), and the old address redirects there with a permanent 301, query string kept. Existing links and search results keep working.
What is never translated
- WordPress admin, login, REST API (
wp-json), XML-RPC, feeds and files. - WooCommerce cart, checkout and my account, plus any path you exclude in settings.
- Logged-in visitors, password-protected posts and visitors with a comment cookie: they see your site language.
Caching plugins and Cloudflare
When you update a page, the plugin clears its translated copies in WP Rocket, LiteSpeed Cache, W3 Total Cache and WP Super Cache. A page shown in your site language at a /fr/ address is marked no-store and noindex, so your cache, Cloudflare APO and search engines do not keep it.
If Eachlang cannot be reached
After 5 seconds (adjustable from 1 to 15) the plugin shows the page in your site language at the same address. Your site keeps working.
Fallback reasons
| Reason | Meaning |
|---|---|
excluded-path, static |
Admin, login, API, cart, checkout, account, a file or an excluded path. |
excluded-query |
Add-to-cart, AJAX, preview or REST query. |
private-session |
Logged-in visitor, password-protected post or comment cookie. |
method |
Anything other than GET or HEAD. |
network, status-NNN |
Eachlang could not be reached in time, or answered with an error. |
proxy-fallback |
Eachlang chose not to translate this page (project paused, page excluded). |
not-configured |
The public key is missing or malformed. |