In this article, you will learn more about how to integrate Weglot into your CraftCMS website.
If you start from the CraftCMS plugin
If you start by using our plugin on CraftCMS, you’ll first see this screen:
If you don’t have a project set up on Weglot, you’ll need to click on the New to Weglot? button.
You’ll then be redirected to the Weglot registration page to create your account or a new project if you already have an account.
We will already know your website URL, so the very first step for you will be to indicate the language from which you are translating and the language(s) to which you want to translate your website:
Once you’ve completed this step, your website will be scanned, and you’ll access a section in which you can give some information about your website and the translations you desire.
There will be a short description of your website, and you'll have the possibility to select tags to adapt translations. You'll also have a translation on the right, which you can edit to check the translation's quality and adapt the prompt on the left:
Above the Continue button, you'll find an Advanced section, allowing you to add guidelines so that translations are more adapted to your needs.
Once you click on Continue, you will arrive on the API key page and find the API key related to your new project.
Note that you have a button at the bottom leading you to the Craft Plugin Store page.
Copy this API key, go back to your CraftCMS plugin, and paste the API key.
You can now finish your Weglot setup.
The Weglot switcher will appear at the bottom right of your website and will allow you to fully translate your website.
If you start from the Weglot dashboard
If you don’t have a Weglot account, you will need to create one and will have to follow the onboarding steps described in this article we made.
Once you create your Weglot project, you’ll need to indicate your website URL.
After this, indicate that you are using CraftCMS:
After this, you’ll need to indicate the source language of your website and the language(s) you want to translate it into:
Once you’ve completed this step, your website will be scanned, and you’ll access a section in which you can give some information about your website and the translations you desire.
There will be a short description of your website, and you'll have the possibility to select tags to adapt translations. You'll also have a translation on the right, which you can edit to check the translation's quality and adapt the prompt on the left:
Above the “Continue” button, you'll find an “Advanced” section, allowing you to add guidelines so that translations are more adapted to your needs.
After going ahead, you will have access to your new API key.
Note that you have a button at the bottom leading you to the Craft Plugin Store page.
You now need to go to the Weglot plugin for CraftCMS, activate the plugin, and paste the API key in the corresponding API Key section:
After clicking Save, you’ll have access to the plugin and will be able to go ahead.
A Weglot switcher will appear on your website (bottom-right), and by using it, you will be able to translate your website.
If you are having difficulties setting Weglot up on your CraftCMS website, do not hesitate to contact us at help@weglot.com.