שאלו את שאלתכם וקבלו סיכום של המסמך על ידי הפניה לדף הזה ולספק ה-AI שתבחרו
היסטוריית גרסאות
- "Add `--ci` flag"v9.5.212.9.2026
- "Add checkTypes option"v8.1.523.2.2026
התוכן של הדף הזה תורגם באמצעות AI.
צפייה בגרסה האחרונה של התוכן המקורי באנגליתאם יש לכם רעיון לשיפור התיעוד הזה, אל תהססו לתרום על ידי הגשת Pull Request ב-GitHub.
קישור GitHub לתיעודהעתקת ה-Markdown של המסמך ללוח
Build Dictionaries
To build your dictionaries, you can run the commands:
העתקת הקוד ללוח
or in watch mode
העתקת הקוד ללוח
This command will find your declaration content files as default as ./src/**/*.content.{ts|js|mjs|cjs|json|tsx|jsx|md|mdx|yaml|yml}. And build the dictionaries in the .intlayer directory.
Aliases:
npx intlayer dictionaries buildnpx intlayer dictionary buildnpx intlayer dic build
Arguments:
--base-dir: Specify the base directory for the project. To retrieve the intlayer configuration, the command will look for theintlayer.config.{ts,js,json,cjs,mjs}file in the base directory.Example:
npx intlayer build --base-dir ./src--env: Specify the environment (e.g.,development,production). Useful in the case you use environment variables in your intlayer configuration file.Example:
npx intlayer build --env production--env-file: Provide a custom environment file to load variables from. Useful in the case you use environment variables in your intlayer configuration file.Example:
npx intlayer build --env-file .env.production.local--with: Start command in parallel with the build.Example:
npx intlayer build --with "next dev --turbopack"--skip-prepare: Skip the prepare step.Example:
npx intlayer build --skip-prepare--no-cache: Disable the cache.Example:
npx intlayer build --no-cache--ci: Run the command in every Intlayer project of the monorepo (or only the current one when run from a project directory). Per-project credentials can be injected viaINTLAYER_PROJECT_CREDENTIALS, a JSON map of project path to{ "clientId", "clientSecret" }.Example:
npx intlayer build --ci--check-types: Check types of the content declaration files.Example:
npx intlayer build --check-types
