์ž‘๊ฐ€:
    ์ƒ์„ฑ:2024-08-11๋งˆ์ง€๋ง‰ ์—…๋ฐ์ดํŠธ:2026-09-12

    ๋ˆ„๋ฝ๋œ ๋ฒˆ์—ญ ํ…Œ์ŠคํŠธ

    bash
    npx intlayer content test
    

    ๋ณ„์นญ:

    • npx intlayer test

    ์ด ๋ช…๋ น์–ด๋Š” ๋ชจ๋“  ๊ตฌ์„ฑ๋œ ๋กœ์ผ€์ผ์—์„œ ๋ˆ„๋ฝ๋œ ๋ฒˆ์—ญ์„ ์‹๋ณ„ํ•˜๊ธฐ ์œ„ํ•ด ์ฝ˜ํ…์ธ  ์„ ์–ธ ํŒŒ์ผ์„ ๋ถ„์„ํ•ฉ๋‹ˆ๋‹ค. ์–ด๋–ค ๋ฒˆ์—ญ ํ‚ค๊ฐ€ ์–ด๋–ค ๋กœ์ผ€์ผ์—์„œ ๋ˆ„๋ฝ๋˜์—ˆ๋Š”์ง€์— ๋Œ€ํ•œ ํฌ๊ด„์ ์ธ ๋ณด๊ณ ์„œ๋ฅผ ์ œ๊ณตํ•˜์—ฌ ๋‹ค๊ตญ์–ด ์ฝ˜ํ…์ธ ์˜ ์ผ๊ด€์„ฑ์„ ์œ ์ง€ํ•˜๋Š” ๋ฐ ๋„์›€์„ ์ค๋‹ˆ๋‹ค.

    ์˜ˆ์‹œ ์ถœ๋ ฅ:

    bash
    pnpm intlayer content test
    Missing 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.ts
    Locales: en, ru, ja, fr, ko, zh, es, de, ar, it, en-GB, pt, hi, tr, pl
    Required locales: en
    Missing locales: pl, tr, es
    Missing required locales: -
    Total missing locales: 3
    Total missing required locales: 0
    

    ์ธ์ˆ˜:

    ๊ตฌ์„ฑ ์˜ต์…˜:

    • --env: ํ™˜๊ฒฝ์„ ์ง€์ •ํ•ฉ๋‹ˆ๋‹ค (์˜ˆ: development, production).
    • --env-file [envFile]: ๋ณ€์ˆ˜ ๋กœ๋“œ๋ฅผ ์œ„ํ•œ ์‚ฌ์šฉ์ž ์ง€์ • ํ™˜๊ฒฝ ํŒŒ์ผ์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.
    • --base-dir: ํ”„๋กœ์ ํŠธ์˜ ๊ธฐ๋ณธ ๋””๋ ‰ํ„ฐ๋ฆฌ๋ฅผ ์ง€์ •ํ•ฉ๋‹ˆ๋‹ค.

      ์˜ˆ์‹œ: npx intlayer content test --base-dir ./src --env-file .env.production.local
    • --no-cache: ์บ์‹œ๋ฅผ ๋น„ํ™œ์„ฑํ™”ํ•ฉ๋‹ˆ๋‹ค.

      ์˜ˆ์‹œ: npx intlayer build --no-cache
    • --ci: ๋ชจ๋…ธ๋ ˆํฌ์˜ ๋ชจ๋“  Intlayer ํ”„๋กœ์ ํŠธ์—์„œ ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค(ํ”„๋กœ์ ํŠธ ๋””๋ ‰ํ„ฐ๋ฆฌ ์•ˆ์—์„œ ์‹คํ–‰ํ•˜๋ฉด ํ•ด๋‹น ํ”„๋กœ์ ํŠธ๋งŒ). ํ”„๋กœ์ ํŠธ๋ณ„ ์ž๊ฒฉ ์ฆ๋ช…์€ ํ”„๋กœ์ ํŠธ ๊ฒฝ๋กœ๋ฅผ { "clientId", "clientSecret" }์— ๋งคํ•‘ํ•˜๋Š” JSON ๊ฐ์ฒด์ธ INTLAYER_PROJECT_CREDENTIALS๋ฅผ ํ†ตํ•ด ์ฃผ์ž…ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

      ์˜ˆ์‹œ: npx intlayer test --ci

    ์ค€๋น„ ์˜ต์…˜:

    • --build: ํ‘ธ์‹œ ์ „์— ์‚ฌ์ „์„ ๋นŒ๋“œํ•˜์—ฌ ์ฝ˜ํ…์ธ ๊ฐ€ ์ตœ์‹  ์ƒํƒœ์ธ์ง€ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค. true๋Š” ๋นŒ๋“œ๋ฅผ ๊ฐ•์ œํ•˜๊ณ , false๋Š” ๋นŒ๋“œ๋ฅผ ๊ฑด๋„ˆ๋›ฐ๋ฉฐ, undefined๋Š” ๋นŒ๋“œ ์บ์‹œ๋ฅผ ์‚ฌ์šฉํ•˜๋„๋ก ํ—ˆ์šฉํ•ฉ๋‹ˆ๋‹ค.

    ๋กœ๊ทธ ์˜ต์…˜:

    • --verbose: ๋””๋ฒ„๊น…์„ ์œ„ํ•œ ์ƒ์„ธ ๋กœ๊ทธ๋ฅผ ํ™œ์„ฑํ™”ํ•ฉ๋‹ˆ๋‹ค. (CLI์—์„œ ๊ธฐ๋ณธ๊ฐ’์€ true)

      ์˜ˆ์‹œ: npx intlayer content test --verbose

    ์˜ˆ์‹œ:

    bash
    npx intlayer content test --verbose
    

    ์ถœ๋ ฅ ๊ฒฐ๊ณผ๋Š” ๋ชจ๋“  ๊ตฌ์„ฑ๋œ ๋กœ์ผ€์ผ์—์„œ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์ด ์ œ๋Œ€๋กœ ์ž‘๋™ํ•˜๋„๋ก ์™„๋ฃŒํ•ด์•ผ ํ•  ๋ฒˆ์—ญ์„ ๋น ๋ฅด๊ฒŒ ์‹๋ณ„ํ•˜๋Š” ๋ฐ ๋„์›€์ด ๋ฉ๋‹ˆ๋‹ค.