Skip to main content

How to create a multilingual website in Onepage with Weglot

Set up Weglot in Onepage to add and manage multiple languages, install the language switcher, and customize translations in minutes

Dmytro avatar
Written by Dmytro
Updated today

Multilingual websites are essential for reaching international audiences, increasing engagement, and boosting conversions. Weglot is a leading cloud-based translation platform that automatically detects and translates your content into over 100 languages, lets you fine-tune every phrase with a visual editor, and offers full control over your language switcher’s design and placement.

Weglot provides two integration methods for Onepage - either configure DNS records for language-specific subdomains or subdirectories, or deploy a lightweight JavaScript snippet.

In this article, we’ll guide you through the quick and easy custom-code approach using Weglot’s snippet.

Step 1: Sign up for a Weglot account

Go to and register an account:

(Partnerlink)

Step 2: Create a new project

Create a new project, specify the project name. As website technology please select the option "other".

Step 3: Configure your languages

In your new project, choose your site’s original language and then select each additional language you want to support.

Step 4: Enter your website details

On the “Add your website” screen, type your domain (for example, mywebsite.com) and click "Check". Select the Option "Connect my live website" and "Subdirectories".

Step 5: Skip the connection step

In the next step please select the option "skip this step".

Step 6: Install the Weglot snippet in Onepage

In the Weglot dashboard, copy provided JavaScript code.

In Onepage, go to Projects, select your project, and navigate to Settings ➡️ Custom code. Paste the snippet into the <head> section and click Update.

Step 7: Activate the language switcher

Go to your site in Onepage and click "update". Preview your site, then click the language button in the bottom-right corner at least once. This activates your Weglot account and displays the switcher on every page.

Step 8: Capture any missing content

If parts of your site remain untranslated, open your Weglot project’s App Settings, add a Dynamic Rule targeting the body selector, then save. Weglot will re-scan and translate all matching elements.

Step 9: Manage translations and design

  • Edit translations: Use the Visual Editor in Weglot to review and adjust any automatic translations directly on your live pages.

  • Customize the switcher: Open the Switcher Editor in Weglot to change the look, position, and style of your language button.

  • For SEO-friendly URL structures using subdirectories or subdomains, follow the guide from Weglot: How do I set up my DNS?


🎉 Congratulation! Your page has a new language switcher!


Related articles

weglot.com (Partnerlink)


💡Do you have any feedback concerning this article? Please let us know through our live chat or at support@onepage.io, so we may keep it up to date. Thank you! 🙂


Did this answer your question?