Weglot doesn't work well with Webstudio because Webstudio sites are Single Page Applications (SPAs). SPAs are faster than traditional websites because they don't reload the entire page on each navigation—instead, they dynamically update content in the browser.
Weglot struggles with SPAs for several reasons:
-
Content detection timing: Weglot scans the page HTML on load, but SPA content is rendered dynamically by JavaScript after the initial page load, so Weglot may miss content entirely.
-
Navigation without page reloads: When you navigate between pages in an SPA, the browser doesn't perform a full page reload. Weglot relies on page loads to detect and translate new content, so navigating to a new page won't trigger translation.
-
Dynamic content updates: Even with Weglot's "Dynamic" setting (which watches for DOM changes using a body selector), it can cause performance issues and may not catch all content changes reliably.
-
DNS/proxy complexity: Weglot typically works by proxying your site through their servers, which adds complexity and potential points of failure for SPA architectures.
For multilingual Webstudio sites, consider using a headless CMS with built-in i18n support (use our CMS Finder to find one that fits your needs) and fetching translated content based on language parameters in your URLs.