HomeSandboxShowcaseAppDocBlog
    • EnglishEnglish
      EN
    • русскийRussian
      RU
    • 日本語Japanese
      JA
    • françaisFrench
      FR
    • 한국어Korean
      KO
    • 中文Chinese
      ZH
    • españolSpanish
      ES
    • DeutschGerman
      DE
    • العربيةArabic
      AR
    • italianoItalian
      IT
    • British EnglishBritish English
      EN-GB
    • portuguêsPortuguese
      PT
    • हिन्दीHindi
      HI
    • TürkçeTurkish
      TR
    • polskiPolish
      PL
    • IndonesiaIndonesian
      ID
    • Tiếng ViệtVietnamese
      VI
    • українськаUkrainian
      UK
    /
    Filter docs by framework
    Alt+←
    Why Intlayer ?
    Get Started
    Concept
    • How Intlayer Works
    • Configuration
    • TestFillBuildWatchExtractLoginPushPullConfigurationListVersionEditorLiveDebugDoc ReviewDoc TranslateSDK
    • Visual Editor
    • CMS
    • CI/CD Integration
    • TranslationPluralEnumerationConditionGenderInsertionFileNestingMarkdownHTMLFunction Fetching
    • Per Locale File
    • Compiler
    • Auto Fill
    • Testing
    • Bundle Optimization
    Environment
    • Next.js 14 and App Router
      Next.js 15
      Next.js no locale path
      Next.js and Page Router
      Compiler
    • Tanstack Start Solid
    • Astro and React
      Astro and Svelte
      Astro and Vue
      Astro and Solid
      Astro and Preact
      Astro and Lit
      Astro and Vanilla JS
    • React Router v7
      React Router v7 (fs-routes)
      Compiler
    • Nuxt and Vue
    • Vite and Solid
    • SvelteKit
    • Vite and Preact
    • Vite and Vanilla JS
    • Vite and Lit
    • Angular 19 (Webpack)
      Analog
    • React CRA
    • React Native and Expo
    • Express.js
      NestJS
      Fastify
      Hono
      Adonis
    • Lynx and React
    Plugins
    • JSON
    • gettext (.po)
    VS Code Extension
    Agent
    • MCP Server
    • Agent skills
    Releases
    • v8
    • v7
    • v6
    Benchmark
    • Next.js
    • TanStack
    • Vue
    • Solid
    • Svelte
    Blog
    Ask a question
    1. Documentation
    2. Concept
    3. CLI
    4. Test
    Creation:2024-08-11Last update:2025-11-22
    Reference this doc to your favorite AI assistant
    ChatGPT
    Claude
    DeepSeek
    Google AI mode
    Gemini
    Perplexity
    Mistral
    Grok

    Ask your question and get a summary of the document by referencing this page and the AI provider of your choice

    Edit this doc

    If you have an idea for improving this documentation, please feel free to contribute by submitting a pull request on GitHub.

    GitHub link to the documentation
    Copy

    Copy doc Markdown to clipboard

    Test missing translations

    bash
    Copy code

    Copy the code to the clipboard

    npx intlayer test

    Aliases:

    • npx intlayer content 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:

    bash
    Copy code

    Copy the code to the clipboard

    npx 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: 0

    Arguments:

    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:

    bash
    Copy code

    Copy the code to the clipboard

    npx intlayer content test --verbose

    The output helps you quickly identify which translations need to be completed to ensure your application works properly across all configured locales.

    CLI
    Fill
    Alt+→

    In this page

      Discussions are anonymous and regularly reviewed to address common issues. Feel free to share feature ideas, feedback on the documentation, or anything related to Intlayer, we use this input to shape our roadmap and improve the product.

      npx intlayer test
      npx 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: 0
      npx intlayer content test --verbose