This general setup guide describes how to translate your website with Weglot. Please check if we provide a detailed setup guide for your website CMS / technology here.

Introduction

You can integrate Weglot to your website in 2 different ways:

  • JavaScript integration: Quick and easy integration. Simply copy paste a short Javascript code in your website. It takes 5 minutes to install and doesn’t require any coding knowledge.
  • Subdomains integration: More in-depth and better for SEO. Your translated pages will be on subdomains (like fr.mysite.com). It can take 15 minutes to install and requires you to add DNS record entries (We provide help if you need!). This integration is better for SEO as you have a dedicated URL for each language.

JavaScript integration

Step 1: Create an account on Weglot (~ 1 minute)

This account will be the place where you have all your translations and where you will manage them. Simply create a Weglot account here.

translate-website-guide-register

Step 2: Select your website technology

Select your website technology. If it’s not available, select “Other”.

translate-website-guide-select-techno

Step 3: Choose the JavaScript integration option

After validating your email, you will arrive on the setup page of Weglot. Scroll down to the “Other possible integrations” part and click on “Use Javascript integration”.

Step 4: Choose languages

Specify the original language of your website (the language in which your website is originally created) and the language you want to translate it into.

In the example below, the website is originally in English and I choose to translate in French.

Click “Next”.

screenshot-tuto-1-3

Step 5: Copy the code

Simply copy the JavaScript code snippet presented to you.

Step 6: Paste the code

If you use a CMS, find the option to add a JavaScript snippet in the <head> section of your HTML pages (usually in the CMS settings).

Otherwise, simply paste the JavaScript snippet on all your website HTML pages just before the </head> tag.

Step 7: It’s done!

Go to your website, and you should see the language button at the bottom right. It might take a few minutes to appear. Try changing the language, you should see your website translated in the desired language!

Step 8: Start editing your translations

Weglot provides you with a first layer of automatic translations. You can then review and manually edit your translations in your Weglot account.

Log in to your Weglot account and then go to “Translations” to find all your translations and edit them.

Subdomains integration

IMPORTANT REQUIREMENT

To use this integration, you will need to have your own domain name. If you haven’t bought or connected your DNS to your website already, don’t choose this integration yet. Indeed, you will need to create subdomains so you need to access the DNS records area of your domain name.

Step 1: Create an account on Weglot (~ 1 minute)

This account will be the place where you have all your translations and where you will manage them. Simply create a Weglot account here.

translate-website-guide-register

Step 2: Select your website technology / CMS

Select your website technology. If it’s not available, select “Other”.

translate-website-guide-select-techno

Step 3: Choose languages

After validating your email, you will arrive on the setup page of Weglot. Enter your website URL (You must enter your own domain name, like mywebsite.com) not a URL generated by your CMS.

Then, specify the original language of your website (the language in which your website is originally created) and the languages you want to translate it into.

In the example below:

  • the domain is: mywebsite.com
  • the original language is: English
  • the translated language is: French

Click “Next” to go to the next step.

translate-website-guide-url-languages

Step 4: Enter your new DNS entries

In this step, you will add new DNS entries to your DNS record.

translate-website-guide-DNS-records

If you bought your domain name via your CMS plateform, then you should be able to add new entries (CNAME / Aliases) to your DNS records directly inside your CMS admin.

Otherwise, if you bought your domain on a external provider (like GoDaddy, 1&1, Gandhi, etc…), you can add the new entries (CNAME / Aliases) directly in this external provider account. If you are not sure how to do it or where it is, we can help you. Just email us at support@weglot.com.

Step 5: Validate the DNS entries

When you added and saved your entries, go back to your Weglot account tab, click “Check DNS”. If everything goes well, you should see green check icons. It means the DNS entries were successfully configured. Then, click on “Next”.

translate-website-guide-DNS-records-ok

Step 6: Copy/Paste the JavaScript snippet

Now that your subdomains are being setup, it can take several minutes. In the meantime, simply copy the JavaScript code snippet presented to you.

screenshot-tuto-1-4

If you use a CMS, find the option to add a JavaScript snippet in the <head> section of your HTML pages (usually in the CMS settings).

Otherwise, simply paste the JavaScript snippet on all your website HTML pages just before the </head> tag.

Step 7: It’s done!

Go to your website, and you should see the language button at the bottom right. It might take a few minutes to make sure the subdomains are properly setup and for the language switcher to appear (thanks to the JavaScript snippet).

Try changing the language when the language switcher appears, you should see your translated website!

Step 8: Start editing your translations

You can now review and manually edit your translations in your Weglot account.

Log in to your Weglot account and then go to “Translations” to find all your translations and edit them.

screenshot-tuto-1-7