Drupal - Integration / Setup
Translate your Drupal website
Translate all your content and make your Drupal website multilingual within minutes.
Step 1: Weglot account
Sign up for a Weglot account.
After validating your email you’ll arrive on your Weglot Dashboard. Name your project and select ‘Drupal’ as your website technology.
Step 2: Add your new languages
The next step is to add the URL of your website, the current language of your website and then the new languages you want to add to your Drupal site.
Step 3: Create your subdomains
In this step, you’ll create your SEO-friendly subdomains, for example, https://fr.mywebsite/ (if you want to translate your website into French).
You will need access to your domain name provider account. The following video demonstrates the process with Google Domains – check our videos for other domain name providers or contact us at email@example.com.
In the section where you add your CNAME entries, ‘name’ will be the language code given to you in the Weglot setup process and the ‘data’ section is always ‘websites.weglot.com’.
After you’ve saved this entry in your domain name provider, go back to your Weglot account and click on the ‘Check DNS’ button. This should turn green but may take up to 10 minutes to do so.
Step 4: Add your language switcher
Copy the piece of code from your Weglot setup process.
Find the place in your Drupal account where you’re able to add code into the <head> section of your HTML pages. This is usually located in the CMS settings, under a tab that will be titled “Custom Code” or something similar. Paste the snippet there.
Contact us at firstname.lastname@example.org if you have any problems with this step.
Your multilingual Drupal website is live!
Head to your Drupal website to see your multilingual website. To edit your translations, create custom translation rules, and much more – go to your Weglot Dashboard.