The i18n Frontend Implementer skill enables developers to implement internationalization in their applications using libraries like next-intl or react-i18next. It is ideal for web developers looking to support multiple languages in their frontend applications.
$ npx skills add https://github.com/patricio0312rev/skills --skill i18n-frontend-implementerThe i18n Frontend Implementer skill provides production-ready patterns for adding internationalization to React and Next.js applications. It leverages established libraries like next-intl and react-i18next to enable seamless multi-language support across your frontend. This skill helps developers implement language switching, locale detection, and translation management efficiently. It solves the complexity of managing multiple language variants without code duplication. Web developers building global applications benefit from this skill's best practices and configuration examples.
Install the skill with the command `$ npx skills add https://github.com/patricio0312rev/skills --skill i18n-frontend-implementer` and follow the setup instructions.
Add multilingual support to a React app
Switch languages dynamically
Format dates and currencies based on the user's locale
$ npx skills add https://github.com/patricio0312rev/skills --skill i18n-frontend-implementergit clone https://github.com/patricio0312rev/skillsCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Act as an i18n Frontend Implementer. Implement internationalization for [COMPANY]'s [INDUSTRY] application using [LIBRARY] (e.g., next-intl or react-i18next). Include translations for [LANGUAGES], dynamic routing for language switching, and RTL (right-to-left) support if applicable. Use the following [STRUCTURE]: [STRUCTURE]. Provide code snippets and configuration steps.
# i18n Frontend Implementation for Acme Corp's E-commerce Platform
## Setup Complete
### 1. Library Installation
```bash
npm install react-i18next i18next
```
### 2. Translation Files (en.json)
```json
{
"home": {
"title": "Welcome to Acme Corp",
"description": "Shop the best products at unbeatable prices."
},
"products": {
"title": "Our Products",
"price": "${{price}} USD"
}
}
```
### 3. Language Switcher Component
```jsx
import { useTranslation } from 'react-i18next';
function LanguageSwitcher() {
const { i18n } = useTranslation();
const changeLanguage = (lng) => {
i18n.changeLanguage(lng);
};
return (
<div className="language-switcher">
<button onClick={() => changeLanguage('en')}>English</button>
<button onClick={() => changeLanguage('es')}>Español</button>
</div>
);
}
```
### 4. Dynamic Routing (Next.js Example)
```jsx
// pages/[lang]/index.js
import { useRouter } from 'next/router';
export default function Home({ translations }) {
const router = useRouter();
const { lang } = router.query;
return (
<div>
<h1>{translations.home.title}</h1>
<p>{translations.home.description}</p>
</div>
);
}
export async function getStaticProps({ locale }) {
const translations = await import(`../locales/${locale}.json`);
return { props: { translations } };
}
```
### 5. RTL Support (if applicable)
```css
/* styles/globals.css */
[dir="rtl"] {
direction: rtl;
text-align: right;
}
```
## Next Steps
- Add missing translations for all languages
- Implement locale detection based on browser settings
- Optimize translation loading for performanceTake a free 3-minute scan and get personalized AI skill recommendations.
Take free scan