Lingui Best Practices
Ensures frontend code adheres to Lingui's style guide, promoting consistency and maintainability across i18n implementations.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add lingui-best-practices npx -- -y @trustedskills/lingui-best-practices
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"lingui-best-practices": {
"command": "npx",
"args": [
"-y",
"@trustedskills/lingui-best-practices"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill provides guidance and best practices for using Lingui, a JavaScript library for internationalization. It helps ensure consistent and maintainable translations across applications by enforcing conventions and offering practical advice on structuring translation files and managing linguistic resources. The skill aims to improve the quality and efficiency of localization workflows.
When to use it
- When starting a new project that requires internationalization support.
- During code reviews to enforce Lingui best practices within a team.
- To refactor existing projects with inconsistent or poorly structured translation files.
- When encountering issues with translation consistency or maintainability in an application using Lingui.
Key capabilities
- Provides guidance on structuring
i18ndirectories. - Offers advice on managing pluralization rules within translations.
- Suggests best practices for handling variables and formatting within translated strings.
- Promotes consistent naming conventions for translation keys.
Example prompts
- "Show me an example of a well-structured Lingui
i18ndirectory." - "What's the recommended way to handle pluralization in Lingui?"
- "How can I ensure my translated strings are consistently formatted with Lingui?"
Tips & gotchas
The skill assumes you have some familiarity with JavaScript and internationalization concepts. While it provides best practices, understanding the underlying principles of Lingui will help you apply them effectively.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.