홈샌드박스쇼케이스앱문서블로그
    • English영어
      EN
    • русский러시아어
      RU
    • 日本語일본어
      JA
    • français프랑스어
      FR
    • 한국어한국어
      KO
    • 中文중국어
      ZH
    • español스페인어
      ES
    • Deutsch독일어
      DE
    • العربية아랍어
      AR
    • italiano이탈리아어
      IT
    • British English영어(영국)
      EN-GB
    • português포르투갈어
      PT
    • हिन्दी힌디어
      HI
    • Türkçe튀르키예어
      TR
    • polski폴란드어
      PL
    • Indonesia인도네시아어
      ID
    • Tiếng Việt베트남어
      VI
    • українська우크라이나어
      UK
    /
    프레임워크로 문서 필터링
    Alt+←
    Intlayer의 이점
    시작하기
    개념
    • Intlayer 작동 방식
    • 구성
    • TestFillBuildWatchExtractLoginPushPullConfigurationListVersionEditorLiveDebugDoc ReviewDoc TranslateSDK
    • 비주얼 편집기
    • CMS
    • CI/CD 통합
    • 번역복수형열거조건성별삽입파일중첩MarkdownHTML함수 가져오기
    • 로케일별 파일
    • 컴파일러
    • 자동 채우기
    • 테스트
    • 번들 최적화
    환경
    • Next.js 14 및 앱 라우터
      Next.js 15
      Next.js 로케일 없는 URL
      Next.js 및 페이지 라우터
      컴파일러
    • Tanstack Start Solid
    • Astro 및 React
      Astro 및 Svelte
      Astro 및 Vue
      Astro 및 Solid
      Astro 및 Preact
      Astro 및 Lit
      Astro 및 Vanilla JS
    • React Router v7
      React Router v7 (fs-routes)
      Compiler
    • Nuxt 및 Vue
    • Vite 및 Solid
    • SvelteKit
    • Vite 및 Preact
    • Vite 및 Vanilla JS
    • Vite 및 Lit
    • Angular 19 (Webpack)
      Analog
    • React CRA
    • React Native 및 Expo
    • Express.js
      NestJS
      Fastify
      Hono
      Adonis
    • Lynx 및 React
    Plugins
    • JSON
    • gettext (.po)
    VS Code 확장 기능
    에이전트
    • MCP 서버
    • 에이전트 기술
    릴리스
    • v8
    • v7
    • v6
    벤치마크
    • Next.js
    • TanStack
    • Vue
    • Solid
    • Svelte
    블로그
    질문 발표
    1. Documentation
    2. 개념
    3. CLI
    4. Fill
    생성:2024-08-11마지막 업데이트:2025-11-22
    이 문서를 원하는 AI 어시스턴트에 참조하세요
    ChatGPT
    Claude
    DeepSeek
    Google AI mode
    Gemini
    Perplexity
    Mistral
    Grok

    이 페이지와 원하는 AI 어시스턴트를 사용하여 문서를 요약합니다

    이 페이지의 콘텐츠는 AI를 사용하여 번역되었습니다.

    영어 원본 내용의 최신 버전을 보기
    문서 수정

    이 문서를 개선할 아이디어가 있으시면 GitHub에 풀 리퀘스트를 제출하여 자유롭게 기여해 주세요.

    문서에 대한 GitHub 링크
    복사

    문서의 Markdown을 클립보드에 복사

    사전 채우기 / 감사 / 번역

    bash
    코드 복사

    코드를 클립보드에 복사

    npx intlayer fill

    이 명령어는 누락된 번역, 구조적 불일치 또는 타입 불일치와 같은 잠재적인 문제를 찾기 위해 콘텐츠 선언 파일을 분석합니다. 문제가 발견되면, intlayer fill은 사전을 일관되고 완전하게 유지하기 위해 업데이트를 제안하거나 적용합니다.

    주요 사항:

    • AI 모델의 컨텍스트 창 제한 내에서 유지하기 위해 큰 JSON 파일을 청크로 분할합니다.
    • 출력 형식이 잘못된 경우 번역을 재시도합니다.
    • 번역 정확도를 향상시키기 위해 애플리케이션 및 파일별 컨텍스트를 통합합니다.
    • 기존 번역을 덮어쓰지 않아 기존 번역을 보존합니다.
    • 큐 시스템을 사용하여 파일, 청크 및 로케일을 병렬로 처리하여 속도를 높입니다.

    별칭:

    • npx intlayer dictionaries fill
    • npx intlayer dictionary fill
    • npx intlayer dic fill

    출력 예시:

    bash
    코드 복사

    코드를 클립보드에 복사

    npx intlayer fillPreparing Intlayer (v7.5.14)Done 76ms@intlayer/ai found - Run process locallyProvider: (default) - Model: (default) - API Key: ✓Affected dictionary keys for processing: app, comp-test, hello-world, lang-switcher - [comp-test]      No locales to fill, Skipping comp-test.content.json - [app]            Processing app.content.tsx - [app]            Filling missing metadata for app.content.tsx - [hello-world]    Processing test.content.ts - [hello-world]   [French (fr)]      Preparing test.content.ts - [hello-world]   [Spanish (es)]     Preparing test.content.ts - [lang-switcher]  Processing langSwitcher.content.ts - [lang-switcher]  Filling missing metadata for langSwitcher.content.ts - [hello-world]    Translation completed successfully for test.content.ts - [lang-switcher] [Spanish (es)]     Preparing langSwitcher.content.ts - [app]           [French (fr)]      Preparing app.content.tsx - [app]           [Spanish (es)]     Preparing app.content.tsx - [hello-world]    Content declaration written to test.content.ts - [app]            Translation completed successfully for app.content.tsx - [app]            Content declaration written to app.content.tsx - [lang-switcher]  Translation completed successfully for langSwitcher.content.ts - [lang-switcher]  Content declaration written to langSwitcher.content.ts

    인자:

    파일 목록 옵션:

    • -f, --file [files...]: 감사할 특정 콘텐츠 선언 파일 목록입니다. 제공하지 않으면 구성 파일 설정에 따라 발견된 모든 *.content.{ts,js,mjs,cjs,tsx,jsx,json} 파일이 감사됩니다.

      예시: npx intlayer dictionary fill -f src/home/app.content.ts
    • -k, --keys [keys...]: 키를 기준으로 사전을 필터링합니다. 제공하지 않으면 모든 사전이 감사됩니다.

      예시: npx intlayer dictionary fill -k key1 key2
    • --key [keys...]: 키를 기준으로 사전을 필터링합니다 (--keys의 별칭).

      예시: npx intlayer dictionary fill --key key1 key2
    • --excluded-keys [excludedKeys...]: 키를 기준으로 사전을 제외합니다. 제공하지 않으면 모든 사전이 감사됩니다.

      예시: npx intlayer dictionary fill --excluded-keys key1 key2
    • --excluded-key [excludedKeys...]: 키를 기준으로 사전을 제외합니다 (--excluded-keys의 별칭).

      예시: npx intlayer dictionary fill --excluded-key key1 key2
    • --path-filter [pathFilters...]: 파일 경로에 대한 glob 패턴을 기준으로 사전을 필터링합니다.

      예시: npx intlayer dictionary fill --path-filter "src/home/**"

    엔트리 출력 옵션:

    • --source-locale [sourceLocale]: 번역할 소스 로케일입니다. 지정하지 않으면 구성 파일의 기본 로케일이 사용됩니다.

    • --output-locales [outputLocales...]: 번역 대상 로케일입니다. 지정하지 않으면 소스 로케일을 제외한 구성 파일의 모든 로케일이 사용됩니다.

    • --mode [mode]: 번역 모드: complete, review. 기본값은 complete입니다. complete는 누락된 모든 내용을 채우고, review는 누락된 내용을 채우고 기존 키를 검토합니다.

    Git 옵션:

    • --git-diff: 기본 브랜치(기본값 origin/main)에서 현재 브랜치(기본값 HEAD)로 변경된 사전만 실행합니다.
    • --git-diff-base: git diff의 기준 참조를 지정합니다 (기본값 origin/main).
    • --git-diff-current: git diff의 현재 참조를 지정합니다 (기본값 HEAD).
    • --uncommitted: 커밋되지 않은 변경 사항을 포함합니다.
    • --unpushed: 푸시되지 않은 변경 사항을 포함합니다.
    • --untracked: 추적되지 않은 파일을 포함합니다.

      예시: npx intlayer doc translate --git-diff --git-diff-base origin/main --git-diff-current HEAD
      예시: npx intlayer doc translate --uncommitted --unpushed --untracked

    AI 옵션:

    • --model [model]: 번역에 사용할 AI 모델 (예: gpt-3.5-turbo).
    • --provider [provider]: 번역에 사용할 AI 제공자.
    • --temperature [temperature]: AI 모델의 온도 설정.
    • --api-key [apiKey]: AI 서비스에 사용할 API 키 제공.
    • --custom-prompt [prompt]: 번역 지침을 위한 커스텀 프롬프트 제공.
    • --application-context [applicationContext]: AI 번역에 추가 컨텍스트 제공.
    • --data-serialization [dataSerialization]: Intlayer의 AI 기능에 사용할 데이터 직렬화 형식. 옵션: json (표준, 신뢰할 수 있음), toon (토큰 적음, 일관성 낮음).

      예시: npx intlayer fill --model gpt-3.5-turbo --provider openai --temperature 0.5 --api-key sk-1234567890 --application-context "My application is a cat store"

    환경 변수 옵션:

    • --env: 환경을 지정합니다 (예: development, production).
    • --env-file [envFile]: 변수를 로드할 사용자 정의 환경 파일을 제공합니다.

      예시: npx intlayer fill --env-file .env.production.local
      예시: npx intlayer fill --env production

    구성 옵션:

    • --base-dir: 프로젝트의 기본 디렉토리를 지정합니다.

      예시: npx intlayer fill --base-dir ./src
    • --no-cache: 캐시를 비활성화합니다.

      예시: npx intlayer build --no-cache

    준비 옵션:

    • --build: 푸시 전에 사전을 빌드하여 콘텐츠가 최신 상태인지 확인합니다. true는 빌드를 강제 실행하며, false는 빌드를 건너뛰고, undefined는 빌드 캐시를 사용할 수 있도록 합니다.

    • --skip-metadata: 사전의 누락된 메타데이터(설명, 제목, 태그) 채우기를 건너뜁니다.

    로그 옵션:

    • --verbose: 디버깅을 위한 상세 로그를 활성화합니다. (CLI 기본값은 true)

    예시:

    bash
    코드 복사

    코드를 클립보드에 복사

    npx intlayer fill --file src/home/*.content.ts --source-locale en --output-locales fr es --model gpt-3.5-turbo

    이 명령어는 src/home/ 디렉토리 내 모든 콘텐츠 선언 파일에 대해 GPT-3.5 Turbo 모델을 사용하여 영어에서 프랑스어 및 스페인어로 콘텐츠를 번역합니다.

    Test
    Build
    Alt+→

    이 페이지에서

      토론은 익명이며 일반적인 문제를 해결하기 위해 정기적으로 검토됩니다. 기능 아이디어, 문서에 대한 피드백 또는 Intlayer와 관련된 모든 것을 자유롭게 공유하세요, 이 의견을 로드맵 구성과 제품 개선에 활용합니다.

      npx intlayer fill
      npx intlayer fillPreparing Intlayer (v7.5.14)Done 76ms@intlayer/ai found - Run process locallyProvider: (default) - Model: (default) - API Key: ✓Affected dictionary keys for processing: app, comp-test, hello-world, lang-switcher - [comp-test]      No locales to fill, Skipping comp-test.content.json - [app]            Processing app.content.tsx - [app]            Filling missing metadata for app.content.tsx - [hello-world]    Processing test.content.ts - [hello-world]   [French (fr)]      Preparing test.content.ts - [hello-world]   [Spanish (es)]     Preparing test.content.ts - [lang-switcher]  Processing langSwitcher.content.ts - [lang-switcher]  Filling missing metadata for langSwitcher.content.ts - [hello-world]    Translation completed successfully for test.content.ts - [lang-switcher] [Spanish (es)]     Preparing langSwitcher.content.ts - [app]           [French (fr)]      Preparing app.content.tsx - [app]           [Spanish (es)]     Preparing app.content.tsx - [hello-world]    Content declaration written to test.content.ts - [app]            Translation completed successfully for app.content.tsx - [app]            Content declaration written to app.content.tsx - [lang-switcher]  Translation completed successfully for langSwitcher.content.ts - [lang-switcher]  Content declaration written to langSwitcher.content.ts
      npx intlayer fill --file src/home/*.content.ts --source-locale en --output-locales fr es --model gpt-3.5-turbo