i18n

Configure Next.js multilingual UI with next-intl and message catalogs.

Updated Jan 18, 2026
One-click install
npx skills add https://github.com/monam2/traders --skill i18n-monam2
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: i18n
Source: https://github.com/monam2/traders/tree/main/.agent/skills/i18n
Command: npx skills add https://github.com/monam2/traders --skill i18n-monam2

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

다국어 지원을 필요로 하는 Next.js 앱에 대해 Next-Intl 기반 국제화를 쉽게 구현하도록 도와주며, ko와 en 번역 파일을 이용해 런타임에서 텍스트를 조회합니다.

Core Features & Use Cases

  • 로케일 관리 및 간편한 다국어 스위치
  • messages/ 폴더 아래 ko.json, en.json 형태의 메시지 카탈로그 사용
  • useTranslations 훅으로 텍스트 렌더링 및 국제화 적용 사례

Quick Start

Create messages/ko.json and messages/en.json, install next-intl, and wrap your app with NextIntlProvider to enable runtime translations.

Frequently Asked Questions about i18n

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add multilingual UI translation to a Next.js app?

To add multilingual UI translation in Next.js, you use next-intl with structured message files like messages/ko.json and messages/en.json. The useTranslations hook looks up text at runtime to render the correct locale for your interface.

What is the best way to switch between Korean and English in Next.js?

Switching between Korean and English in Next.js is handled via next-intl locale management. You structure your translations in messages/ko.json and messages/en.json, and the runtime switches the displayed text based on the active locale.

Do I need next-intl to manage localization in a Next.js project?

You need next-intl to enable runtime multilingual text lookups using the useTranslations hook. It requires wrapping your app with NextIntlProvider and maintaining structured message files to drive the translations.

How does runtime translation lookup work with useTranslations in Next.js?

Runtime translation lookup with useTranslations works by reading key-value pairs from your structured message catalogs, such as messages/ko.json. The hook retrieves the correct string for the active locale during component rendering.

Can I use this internationalization approach for frontend projects outside of Next.js?

This internationalization approach is specifically designed for Next.js apps using next-intl. It relies on NextIntlProvider and the useTranslations hook to manage message catalogs and runtime locale switching for multilingual support.

What are the limitations of using message catalogs for Next.js localization?

Using message catalogs for localization requires maintaining separate JSON files like messages/ko.json for each locale. You must keep all structured files synchronized and ensure every translation key exists across every locale to prevent runtime lookup failures.