PrestaShop - Integration / Setup
Translate your PrestaShop website
Translate all your content and make your PrestaShop store multilingual within minutes.
Step 1: Create a Weglot account
This is where you can see and manage all your translations. Create your account here.
Step 2: Choose the desired language(s) and enter your domain URL
After validating your email, you’ll arrive on the Weglot setup page.
If you already have your own domain, enter your website URL (You must enter your own domain name, like “mywebsite.com”—not a temporary or localhost URL).
If you don't have your own domain, but a temporary or localhost URL, then, you can click on the "Use Javascript integration" link at the bottom of the form (see in the screenshot below). You'll be able to activate the subdomain integration later, once you'll have your own domain.
Then, specify the original language of your website (the language you created it in), and the languages you want to translate it into.
In the above example:
- the domain is: mywebsite.com
- the original language is: English
- the translated language is: French
Click “Next” to go to the next step.
Step 3: Configure the subdomains in your DNS records (if you have your own domain)
In this step, you’ll add new DNS entries to your DNS record.
Go to your Domain Name System provider (you’re probably using one like GoDaddy, 1&1, Gandhi, etc), and find the DNS settings. Once there, you should be able to add new entries in the “Type” field, which you should fill out as “CNAME.” You’ll need to do this for each of the languages you’re translating your site into, accompanied by the two-letter language code (the example above shows “fr” for French and “de” for German) for that language’s subdomain.
If you are not sure how to do this or where to find your DNS settings, we can help you. Just email us at support@weglot.com.
Step 4: Validate the DNS entries (if you have your own domain)
Once you’ve added and saved your entries, go back to your Weglot account tab. Click “Check DNS” (this may take a few minutes). If everything is correct, you should see green check icons. This means the DNS entries were successfully configured. Then, click on “Next”.
5) Add the Javascript code
Copy the code that will appear on your screen below (do not forget to replace “YOUR_API_KEY” with the one found in your Weglot settings).
<script type="text/javascript" src="https://cdn.weglot.com/weglot.min.js"></script>
<script>
Weglot.initialize({
api_key: 'YOUR_API_KEY',
});
</script>
Then paste it into the section of your HTML pages.
You’re done!
You’ll now be able to see the language-switch button at the bottom of your website and see your newly translated PrestaShop website (if it’s not there yet, it might just take a few minutes to appear–especially if you have a cache system).
You can now review and manually edit your translations via your Weglot account dashboard.
Log in to your Weglot account and then go to the “Translations” tab to find all your translations and edit them.