next-intl-app-router

Integrate next-intl locale routing and translations into Next.js App Router.

Updated Feb 3, 2026
One-click install
npx skills add https://github.com/eKoh951/hytale-gg --skill next-intl-app-router
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: next-intl-app-router
Source: https://github.com/eKoh951/hytale-gg/tree/main/.windsurf/skills/next-intl-app-router
Command: npx skills add https://github.com/eKoh951/hytale-gg --skill next-intl-app-router

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Centralizes and simplifies i18n setup for Next.js App Router, enabling locale-based routing and consistent translations across the app.

Core Features & Use Cases

  • Setup and integration of next-intl with App Router.
  • Centralized routing, messages loading, and middleware/proxy configuration for locales.
  • Use case: localize a multi-language website with per-locale content and navigation.

Quick Start

Initialize and wire next-intl into your Next.js App Router project by configuring locale routing and adding locale messages.

Frequently Asked Questions about next-intl-app-router

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

FAQPage Schema
How do I set up next-intl for locale-based routing in a Next.js App Router?

Configure next-intl for locale-based routing by defining locales in a routing config, loading per-locale message JSON files, and applying middleware/proxy configuration across app/[locale] layouts and pages.

How does middleware handle i18n locale routing in Next.js App Router?

Middleware handles i18n locale routing in Next.js App Router by intercepting requests and applying proxy configuration to direct users to the correct app/[locale] path. This ensures consistent locale-based routing and translations across the application.

Do I need separate message JSON files for each locale in Next.js i18n?

Yes, you need per-locale message JSON files for Next.js i18n. These files store the translation messages loaded by the application, enabling consistent localized content delivery across different languages in your App Router project.

What's the best way to load translations on server and client components in Next.js App Router?

The best way to load translations on server and client components in Next.js App Router is using next-intl's getMessages and setRequestLocale functions. This ensures correct server and client usage of translations within your app/[locale] structure.

Can I use next-intl to centralize i18n configuration for a multi-language Next.js website?

Yes, you can use next-intl to centralize i18n configuration for a multi-language Next.js website. It centralizes routing, message loading, and middleware configuration to manage per-locale content and navigation effectively.

Why are my next-intl translations not rendering correctly in Next.js App Router pages?

next-intl translations may not render correctly in Next.js App Router pages if setRequestLocale is not properly called or if the routing config and per-locale message JSON files are not correctly aligned with your app/[locale] layout structure.