nextjs-nextintl-localized-link
Installation
SKILL.md
Next.js next-intl Localized Link Component
Problem
When using next-intl for internationalization in Next.js, importing Link from
next/link breaks locale routing. Links will navigate without the locale prefix,
causing 404 errors or loss of language preference.
Example issue:
- Expected URL:
/en/admin/instructors/123 - Actual URL:
/admin/instructors/123(missing locale prefix → 404)
Context / Trigger Conditions
Use the localized Link when: