Internationalization (i18n) Enabler
Configures next-intl internationalization for Next.js storefronts, enabling locale-prefixed routing and multi-language message catalogs.
This skill automates the integration of next-intl into Next.js storefront templates, specifically optimized for the Vercel Shop architecture. It manages the complex transition of moving route segments into [locale] folders, setting up middleware for URL prefixing (e.g., /en-US/products), and configuring message loaders for per-locale catalogs. Designed with Next.js 16 compatibility in mind, it ensures that internationalization works seamlessly with cacheComponents and partial pre-rendering (PPR) by following specific implementation patterns that avoid common build errors.
主な機能
01Synchronizes canonical URLs and hreflang tags for multi-language SEO
02Implements cache-compatible locale resolution via next/root-params
0351 GitHub stars
04Configures next-intl middleware for locale-prefixed URL routing
05Adds locale support to 'instant' samples for Next.js partial pre-rendering
06Automates migration of app routes into [locale] dynamic segments
ユースケース
01Implementing locale-prefixed URLs without the overhead of Shopify Markets
02Adding multi-language support to a Vercel Shop storefront
03Restoring i18n machinery in Next.js templates that default to single-locale