--- id: patricio0312rev/skills/i18n-frontend-implementer version: "9cd321e2" license: MIT install: manual updated: 2026-01-12 --- # i18n-frontend-implementer — This skill guides you through building a complete internationalization layer for frontend applications. It covers library selection, dictionary organization, provider configuration, and implementing locale-aware formatting for dates, numbers, and currency. You'll also learn to add language switching UI and support for plural rules across your app. Publisher: patricio0312rev · Stars: 52 · Updated: 2026-01-12 Install (manual): `git clone https://github.com/patricio0312rev/skills` ## SKILL.md # i18n Frontend Implementer Implement internationalization with next-intl, react-i18next, or similar libraries. ## Core Setup **1. Install**: `npm install next-intl` or `react-i18next` **2. Create dictionaries**: `locales/en.json`, `locales/es.json` **3. Provider setup**: Wrap app with IntlProvider **4. Translation keys**: Hierarchical namespace structure **5. Formatters**: Date, number, currency formatting **6. Language switcher**: Dropdown or flags UI ## Translation Structure ```json { "common": { "nav": { "home": "Home", "about": "About" } }, "auth": { "login": "Sign In", "logout": "Sign Out" }, "errors": { "required": "{field} is required" } } ``` ## Usage Examples ```tsx const t = useTranslations('common');
{formatDate(date, { dateStyle: 'long' })}
``` ## Best Practices Use namespaces for organization, extract all text to translations, handle plurals properly, format dates/numbers per locale, provide language switcher, support RTL languages, lazy-load translations. [View on SkillFed](https://skillfed.io/patricio0312rev/skills/i18n-frontend-implementer) · [View on GitHub](https://github.com/patricio0312rev/skills)