- Home
- Skills
- Frontend & Web Apps
- i18n es en react vue
i18n es en react vue
Internationalize React and Vue apps with native es-ES/English copy, ICU plurals, and automated locale diffing.
$7
Works with the AI Agents you already use
i18n es en react vue
Example session with this skill installed
Internationalize this React component for es-ES and en-US using react-i18next: <button onClick={save}>Save Changes</button>. Use the 'common' namespace.
- Read your context and instructions
- Compiled the i18n es en
The component has been updated to use react-i18next with semantic keys. Hardcoded strings were extracted into the common namespace, including appropriate Spanish plurals.
Code changes
import React from 'react';
import { useTranslation } from 'react-i18next';
export const SaveButton = ({ save }) => {
const { t } = useTranslation('common');
return (
<button onClick={save}>
{t('actions.save_changes')}
</button>
);
};
Locale files
public/locales/en/common.json
{
"actions": {
"save_changes": "Save Changes"
}
}
public/locales/es/common.json
{
"actions": {
"save_changes": "Guardar cambios"
}
}
Validation
- Plurals Check: No plural forms required for these keys.
- Placeholder Check: No placeholders detected.
- Glossary Check: Used "Guardar" for "Save" per
es-ESstyle guide (sentence case). - Script Status: Manual verification performed as no file system access was provided for
locale_diff.py.
Next steps
- Add the new keys to your main translation files if using multiple namespaces.
- Verify that the
i18n.jsconfiguration includescommonin thensarray. - Run
python3 scripts/find_hardcoded.py src/to ensure no other strings remain in this directory.
Connects securely to your tools. The creator never sees your data.
About this skill
Hardcoded strings and broken plural logic create fragile, unprofessional interfaces. This skill automates the internationalization of React and Vue applications for Spanish (es-ES) and English markets. It ensures UI copy sounds native to Spain while maintaining strict technical parity between locale files.
What it does
- Extract strings identifies hardcoded text in components, toasts, and metadata using specialized scripts.
- Implement libraries converts raw text into
i18next,next-intl,vue-i18n, or@nuxtjs/i18npatterns. - Fix Spanish plurals implements the essential
_manycategory for Spanish in i18next to prevent raw key leaks. - Apply localization formats numbers, dates, and currencies using
Intlstandards and ICU message syntax. - Audit locales runs a Python-based diff to find missing keys, untranslated values, or mismatched placeholders.
How it works
- Analyze stack by reading
package.jsonto detect the framework, i18n library version, and project tone. - Inventory text using
find_hardcoded.pyto map all user-visible strings includingaria-labelsandplaceholders. - Refactor code to replace strings with semantic keys and proper interpolation helpers.
- Generate JSON providing synchronized
es.jsonanden.jsonfiles with consistent key ordering. - Validate output using
locale_diff.pyto catch syntax errors or missing plural forms before deployment.
Frameworks & tools
Supports React, Next.js (App and Pages Router), Vue, and Nuxt. Compatible with react-i18next, next-intl, vue-i18n, and @nuxtjs/i18n. Uses Python for extraction and validation scripts.
Why this beats prompting it yourself
Generic prompts often miss the specific Spanish _many plural requirement which causes runtime errors. This tool uses a pre-written glossary to ensure "tú" vs "usted" consistency and includes scripts that physically diff your locale files to guarantee zero missing keys.
Use cases
- Adding English/Spanish support to an existing hardcoded React or Vue codebase.
- Fixing broken ICU plural rules and missing "other" categories in locale files.
- Refactoring Next.js server components to use
getTranslationscorrectly. - Synchronizing large JSON locale folders after a feature release.
Known limitations
Does not perform legal, medical, or financial adaptation of meaning. Requires a Python environment to run the included validation and extraction scripts.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Frontend & Web Apps.
Requires Python 3 for scripts. Glossary limited to es-ES and English. Does not adapt legal or medical meaning. Direct package installation requires user permission.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 13 days ago