Ask your question and get a summary of the document by referencing this page and the AI provider of your choice
Version History
- "Initial history"v5.5.1029/06/2025
The content of this page was translated using an AI.
See the last version of the original content in EnglishIf you have an idea for improving this documentation, please feel free to contribute by submitting a pull request on GitHub.
GitHub link to the documentationCopy doc Markdown to clipboard
Auto-Generate Translations in a CI/CD Pipeline
Intlayer allows the automatic generation of translations for your content declaration files. There are multiple ways to achieve this depending on your workflow.
Using the CMS
With Intlayer, you can adopt a workflow where only a single locale is declared locally, while all translations are managed remotely through the CMS. This allows content and translations to be completely detached from the codebase, offering more flexibility for content editors and enabling hot content reloading (no need to rebuild the application to apply changes).
Example Configuration
Copy the code to the clipboard
To learn more about the CMS, refer to the official documentation.
Using Husky
You can integrate translation generation into your local Git workflow using Husky.
Example Configuration
Copy the code to the clipboard
Copy the code to the clipboard
For more information about Intlayer CLI commands and their usage, refer to the CLI documentation.
If you have multiple apps in your repo using separate intlayer instances, you can use the --base-dir argument like this:
Copy the code to the clipboard
Using GitHub Actions
Intlayer provides a CLI command to autofill and review dictionary content. This can be integrated into your CI/CD workflow using GitHub Actions.
Copy the code to the clipboard
To set up the environment variables, go to GitHub → Settings → Secrets and variables → Actions and add the secret .
Same as for Husky, in the case of a monorepo, you can use the --base-dir argument to sequentially process each app.
By default, the--git-diffargument filters dictionaries that include changes from the base (defaultorigin/main) to the current branch (default:HEAD).
For more information about Intlayer CLI commands and their usage, refer to the CLI documentation.