Website visitor asks for a page on your website.
Your server sends the page back to the website visitor’s browser in the original language, with a script tag calling the Weglot JS library.
The library detects the user language, based on their choice or their locale, gathers all the content, and sends it to the Weglot Translation API.
The Weglot Translation API sends the translations back, and the Weglot JS library swaps the original content for the translations.
Configure Weglot’s Content Delivery Network for a fully translated website in minutes. Choose between our "subdomain" and "subdirectory" based on how you want the translated pages to appear (e.g. https://fr.yoursite.com or https://yousite.com/fr). For subdomain mode, you'll edit your DNS settings to create specific subdomains for each new language and point them to the Weglot servers. For subdirectory (in beta), you'll edit your DNS to point your entire domain to us.
Any request for a translated version of your website will deliver blazing fast results to your customer in their native language. Plus, a layer of cache on top of the Weglot translation API means if the exact same translation request is sent twice, it will remember the answer and send it back to you instantly. Weglot’s reverse proxy solution provides you with a fully SEO-friendly version of your website that’s easily indexed by global search engines.
Website visitor asks for a page of your website in French. The subdomain fr. points to the Weglot reverse proxy server.
The Weglot proxy server asks your website server for the original page.
Your server sends the page back to Weglot in the original language.
Weglot detects all the content and sends it to the Weglot Translation API.
The Weglot Translation API sends the translations back and the Weglot proxy server replaces the original content for the translations in the source code of the page.
The French page is delivered to your website visitor.