Ask your question and get a summary of the document by referencing this page and the AI provider of your choice
By integrating the Intlayer MCP Server to your favourite AI assistant can retrieve all the doc directly from ChatGPT, DeepSeek, Cursor, VSCode, etc.
See MCP Server docIf 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
Test missing translations
npx intlayer content testAliases:
- npx intlayer test
This command analyzes your content declaration files to identify missing translations across all configured locales. It provides a comprehensive report showing which translation keys are missing for which locales, helping you maintain consistency across your multilingual content.
Example output:
pnpm intlayer content testMissing translations: - home-page - tr - src/components/HomePage/homePage.content.ts - server-component - es, tr - src/components/ServerComponent/serverComponent.content.ts - client-component - pl, tr - src/components/ClientComponent/clientComponent.content.tsLocales: en, ru, ja, fr, ko, zh, es, de, ar, it, en-GB, pt, hi, tr, plRequired locales: enMissing locales: pl, tr, esMissing required locales: -Total missing locales: 3Total missing required locales: 0Arguments:
Configuration options:
- --env: Specify the environment (e.g., development, production).
- --env-file [envFile]: Provide a custom environment file to load variables from.
--base-dir: Specify the base directory for the project.
Example: npx intlayer content test --base-dir ./src --env-file .env.production.local
--no-cache: Disable the cache.
Example: npx intlayer build --no-cache
Preparation options:
- --build: Build the dictionaries before pushing to ensure the content is up to date. True will force the build, false will skip the build, undefined will allow using the cache of the build.
Log options:
--verbose: Enable verbose logging for debugging. (default to true using CLI)
Example: npx intlayer content test --verbose
Example:
npx intlayer content test --verboseThe output helps you quickly identify which translations need to be completed to ensure your application works properly across all configured locales.