Can I use Weglot with a Single Page Application?

In this article, you'll see how to use Weglot on your website if you're using a SPA (Single Page Application).

Yes, it's possible to use Weglot if you're using a SPA (Single Page application) such as Angular, React, or Vue.js for example.

Weglot simply has to simulate a page refreshment to display the translations
In order to do that, you can add the code "body" into the Dynamic Element into your Weglot Dashboard > Project Settings (Dynamic) so that Weglot can refresh the content

Once it's done, you can Hard-Refresh* your website's page and check back in an incognito window, your content should be translated

Mac: cmd shift R (lowercase)
PC: ctrl F5

Still need help? Contact Us Contact Us