executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
nextjs-i18nBest practices for multi-language handling, locale routing, and detection strategies across App and Pages Router. Use when adding i18n, locale routing, or language detection in Next.js.
Independent GitHub snapshot · Automated classification · Original documentation governs
Maintain single source of truth for locales and ensure SEO-friendly sub-path routing.
next-intl and create messages/en.json, messages/fr.json, etc.middleware.tsapp/[lang]/layout.tsx with locale paramgetMessages()hreflang tags in generateMetadatagenerateStaticParamsnext build and confirm all locale paths renderapp/[lang]/page.tsx) and i18n configuration in next.config.js for Pages Router.next-intl for App Router (modern) or react-intl / next-translate for legacy apps.middleware.ts to detect user language from Accept-Language headers or cookies and perform redirects.messages/*.json dictionaries in Server Components to keep client bundle small.hreflang tags generated correctly in metadata API for all translated routes.generateStaticParams to pre-render localized versions of static pages at build time.For detailed setup with common libraries, refer to:
getMessages().When this skill applies, preserve the following domain terminology or equivalent concrete examples in the answer when relevant: