Learn how to connect Localazy with the Directus project below.

1. Navigate to the plugin’s Project setup screen #️⃣

Navigate to the plugin screen by clicking the translation icon in the left sidebar. If the Directus project isn’t connected to Localazy, the overview screen will tell you that you are not connected yet.

Head to the Project setup page and click on the link below the Localazy token field. Project setup page

2. Generate and use the access token #️⃣

If you are logged in to Localazy, this will take you to Localazy’s developer console, where you can generate an access token. Find the project you wish to connect to and click on the key icon to generate the access token. Copy it and use it in your Directus project. Generate access token

3. Configure source language #️⃣

Remain on the Project setup page and fill in the Directus project configuration section. Before proceeding, make sure you have created a languages collection (you may name it differently) according to the official Directus guide on content translations.

  • Languages collection - the name of the languages collection where you define available languages for your Directus content
  • Language code field - a field representing the ISO 639 locale of the given language (e.g. en for English)
  • Source language - the primary language of your Directus content. Although it doesn’t need to be the same as in Localazy, we recommend choosing the same language.