Can I use Weglot with a Single Page Application?

In this article, you'll see how to 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 copy-paste the code "body" into the Dynamic Element field into your Weglot Dashboard > Project Settings (Dynamic) so that Weglot can refresh the content

Once it's done, click on "Save changes", then Hard-Refresh* your website's page and check back in an incognito window, your content should be translated

*Hard-Refresh:
Mac: cmd shift R (lowercase)
PC: ctrl F5

Still need help? Contact Us Contact Us