A multilingual site is a set of URLs with a language attached. WPML, Polylang and TranslatePress each decide what those URLs look like, and that decision matters more on a static site than on WordPress. If the language lives in a query string, it does not survive. If it lives in a folder, it usually does.
The good news is that all three render the translated page in PHP. The crawler gets the finished HTML in whichever language was requested. The bad news is that the crawler only follows links on this host, and it drops query strings when it saves paths.
How the URL strategy affects the build
StaticScope asks for URLs and saves each response at a path. A URL like /fr/about/ becomes /fr/about/index.html, which is a clean file. A URL like /about/?lang=fr is saved at /about/ because the query is not part of a file name. The French and English versions collide, and one overwrites the other.
Separate domains per language have a different problem. The crawler follows links only on the WordPress site’s own host, so fr.example.com and www.example.com are two builds, not one. You can publish each separately, but a single build will not cross to the other host.
| Plugin | URL strategies | What survives a build |
|---|---|---|
| WPML | Directories, a query parameter, or a domain per language | Directories work. Query parameters collapse. Domains need a build per domain. |
| Polylang | Directories, or ?lang=, with the default language optionally hidden | Directories work, including a default language at the root. Query parameters collapse. |
| TranslatePress | A subdirectory per language, with an option for the default language at the root | Rendered translations work. The front-end editor and runtime string translation need checking. |
WPML
WPML’s language URL format is the setting to check. “Different languages in directories” gives you /fr/, /de/ and so on, and that maps directly to folders in the build. “Language name added as a parameter” gives you ?lang=fr, which does not. “Different domain per language” needs one build for each domain.
If you use directories, the translated pages are linked from the language switcher and from the content itself, so the crawler finds them. The sitemap should list each language, and StaticScope copies it and removes entries whose files are not in the build. If you build only one language, the other languages’ entries are removed, which is the correct outcome but worth knowing.
WPML also rewrites some URLs and adds language information to the admin. That does not matter on the published site. Check that the switcher’s links point at real files and that each page’s hreflang set points at languages you built.
Polylang
Polylang’s URL settings work the same way. Languages in directories work. The option to hide the default language’s code works, as long as the links agree: the default language lives at the root and the others in folders. The ?lang= mode does not survive for the same reason as WPML’s.
Polylang’s language switcher is ordinary links by default, which is what you want. If it is configured to detect the browser language and redirect, that detection runs in PHP or JavaScript. The PHP version will not run on a static host; the JavaScript version may, but it can send a visitor to a language you did not build.
Polylang stores translations as separate posts, so the translated page is a real page with a real URL. That is a good fit for a static build. The pages need to be linked from the switcher or the sitemap to be found, which they normally are.
TranslatePress
TranslatePress translates at render time. The page is assembled in PHP with the translated strings, so the crawler gets translated HTML. That part works well. Its default URL scheme is a subdirectory per language, which also fits a static build.
The parts to check are the ones that happen after load. The front-end editor is for logged-in translators and has no place in the build. String translation that runs in JavaScript may not be present in the static page. The language switcher may use a query parameter or a cookie to remember a choice; the links themselves need to be real URLs.
TranslatePress’s SEO pack adds hreflang and can translate slugs. Translated slugs are fine because they are in the links, so the crawler follows them. If you change a slug after a build, the old URL is a 404 until you rebuild and add a redirect.
hreflang, canonicals and duplicate content
All three plugins print hreflang tags in the head. Those tags are baked into the HTML, so they survive. What to check is the host inside them. StaticScope replaces the WordPress site URL with the published address, including escaped and protocol-relative forms, so a tag built from home_url() is corrected. A tag pointing at a separate language domain is not, unless that domain is listed under Other addresses to change.
Canonicals work the same way. Each language should canonicalise to its own URL, not to the default language. If the plugin gets that right in WordPress, it gets it right in the build, as long as the host is rewritten.
Duplicate content is the risk when a language does not get built. The English page exists; the French hreflang points at a URL with no file. Search engines see a broken alternate and may ignore the whole set. Build every language you advertise, or remove the alternates you do not build.
What to check
- List the top-level folders in the prepared site. Each language you expect should have one, or be at the root if it is the default.
- Open a page in each language and use the language switcher. Every link should land on a page, not a 404.
- View source and read the hreflang tags. Every alternate should point at a URL you built, on the published host.
- Check the sitemap. It should list each language’s pages, and no entries that 404.
- Fetch one URL with a query string, such as
/?lang=fr. If it returns the default page, the language is not in the build. - If you use Pagefind, remember that search is per search page. A multilingual site needs a search page and an index per language, or results in the wrong language.
Check the built URLs, not the settings screen. Two plugins can describe the same URL strategy and produce different links. The build is the only description that counts.