What problem does it solve?
This Skill streamlines the process of integrating internationalization (i18n) into React NPM libraries, ensuring they can be easily localized without conflicting with the host application's i18n setup.
Core Features & Use Cases
- Isolated i18n Instance: Prevents conflicts with the consuming application's i18n configuration.
- Namespace Isolation: Uses a dedicated namespace to avoid key collisions between the library and the host app.
- Dynamic Zod Schemas: Ensures validation messages update correctly with language changes.
- Use Case: You've developed a reusable React component library for a SaaS product and need to support users in English, Spanish, and French. This Skill will add
react-i18next to your library, allowing seamless translation management.
Quick Start
Add react-i18next internationalization to a React NPM library package, using 'en' as the default language and 'pt' and 'es' as additional languages.