Ask your question and get a summary of the document by referencing this page and the AI provider of your choice
Version History
- "Add checkTypes option"v8.1.523/02/2026
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
Build Dictionaries
To build your dictionaries, you can run the commands:
Copy the code to the clipboard
npx intlayer buildor in watch mode
Copy the code to the clipboard
npx intlayer build --watchThis command will find your declaration content files by default at ./src/**/*.content.{ts|js|mjs|cjs|json|tsx|jsx} 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 if 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 if you use environment variables in your intlayer configuration file.Example:
npx intlayer build --env-file .env.production.local--with: Start a 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--check-types: Check types of the content declaration files.Example:
npx intlayer build --check-types