생성:2026-06-13마지막 업데이트:2026-06-13
이 문서를 원하는 AI 어시스턴트에 참조하세요ChatGPTClaudeDeepSeekGoogle AI modeGeminiPerplexityMistralGrok
이 페이지와 원하는 AI 어시스턴트를 사용하여 문서를 요약합니다
버전 기록
- "Init history"v9.0.02026. 6. 13.
이 페이지의 콘텐츠는 AI를 사용하여 번역되었습니다.
영어 원본 내용의 최신 버전을 보기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 documentationCopy
Copy doc Markdown to clipboard
Next Translate에서 Intlayer로 마이그레이션
next-translate에서 Intlayer로의 마이그레이션은 기존 구문과 tags를 유지하는 거의 drop-in 대체입니다.
해야 할 일
프로젝트에서 Intlayer를 초기화하세요:
bash
코드 복사
코드를 클립보드에 복사
npx intlayer initCLI는 설정을 scaffold합니다. 그런 다음 Intlayer plugin을 next.config.ts에 적용할 수 있으며, 이는 next-translate/useTranslation을 @intlayer/next-translate로 매핑하는 build-time subpath aliases를 주입합니다.
내부적으로 어떻게 작동하는지
next-translate는 useTranslation('ns'), t('ns:key.path'), <Trans> 컴포넌트 같은 hooks를 제공합니다.
내부적으로:
- Interpolation & Plurals:
react-i18nextadapter 동작에 매우 유사합니다. 동적으로 처리되는 것은{{var}}placeholders와key_0,key_one,key_other같은 suffixes로부터 매핑된 pluralization입니다. <Trans>component: HTML 같은 tag parsing과 array 기반componentsprop과 함께 직접 지원됩니다.- Namespaces: Subpath aliasing은 수동 수정 없이
useTranslation참조가 올바른 내부 dictionary namespaces를 참조하도록 보장합니다.