Implement Internationalization (i18n)
Add internationalization to any web application with proper pluralization, locale detection, and RTL support.
The Prompt
Implement i18n for the following app. Include: library setup, translation file structure, language detection and switching, pluralization, date/number/currency formatting by locale, RTL support if needed, lazy loading translations. Framework: [NEXT.JS / REACT / VUE] Library: [NEXT-INTL / REACT-I18NEXT] Languages: [LIST LANGUAGE CODES] RTL needed: [YES / NO]
Example Output
Next.js with next-intl: locale routing (/es/pricing), useTranslations hook in client components, getTranslations in server components, ICU pluralization, DateTimeFormat component. Includes layout.tsx RTL direction attribute for Arabic.
FAQ
Which AI model is best for Implement Internationalization (i18n)?
Claude Sonnet 4 — thorough i18n setup including missed edge cases.
How do I use the Implement Internationalization (i18n) prompt?
Copy the prompt, replace the [BRACKETED] placeholders with your specific information, and paste into your preferred AI assistant (ChatGPT, Claude, Gemini, etc.). Next.js with next-intl: locale routing (/es/pricing), useTranslations hook in client components, getTranslations in server components, ICU pluralization, DateTimeFormat component. Includes layout.tsx RTL direction attribute for Arabic.
Model Recommendation
Claude Sonnet 4 — thorough i18n setup including missed edge cases.