שאלו את שאלתכם וקבלו סיכום של המסמך על ידי הפניה לדף הזה ולספק ה-AI שתבחרו
היסטוריית גרסאות
- "Init history"v5.5.1029.6.2025
התוכן של הדף הזה תורגם באמצעות AI.
צפייה בגרסה האחרונה של התוכן המקורי באנגליתאם יש לכם רעיון לשיפור התיעוד הזה, אל תהססו לתרום על ידי הגשת Pull Request ב-GitHub.
קישור GitHub לתיעודהעתקת ה-Markdown של המסמך ללוח
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.
Table of Contents
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 Live Sync (no need to rebuild the application to apply changes).
Example Configuration
העתקת הקוד ללוח
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
העתקת הקוד ללוח
העתקת הקוד ללוח
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:
העתקת הקוד ללוח
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.
העתקת הקוד ללוח
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 treat each app.
By default, the--git-diffargument filters dictionaries that include changes from base (defaultorigin/main) to current branch (default:HEAD).
For more information about Intlayer CLI commands and their usage, refer to the CLI documentation.
