Lingui Best Practices

🌐Community
by lingui · vlatest · Repository

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.

1

Run in terminal (recommended)

terminal
claude mcp add lingui-best-practices npx -- -y @trustedskills/lingui-best-practices
2

Or manually add to ~/.claude/settings.json

~/.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 i18n directories.
  • 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 i18n directory."
  • "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 HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
lingui
Installs
23

🌐 Community

Passed automated security scans.