Back to list
RedBoardDev

lingui

by RedBoardDev

0🍴 0📅 Jan 19, 2026

SKILL.md


name: lingui description: Use lingui to manage translations. Use when adding/modifying translations.

Lingui

When to Use

Adding/modifying translations.

Rules

  • React: <Trans>Label</Trans> or t\Text`(viauseLingui()from@lingui/react/macro`)
  • Non-React: msg\Text`(via@lingui/macro`)
  • Catalogues: packages/i18n/locales/<locale>/messages.po
  • Commands: npm run lingui:extract → edit .ponpm run lingui:compile
  • Never use: useTranslate, old i18n helpers

Workflow

  1. Identify context: React component/hook → <Trans>/t\...`, Domain → msg`...``
  2. Detect old system: useTranslate(), old helpers, anti-patterns
  3. Propose Lingui API: React JSX → <Trans>, React logic → t\...`, Domain → msg`...``
  4. Migration plan: replace old calls, structure messages, imports (see references/patterns.md)
  5. Catalogue update: extract → edit .po → compile
  6. Verification: display in fr/en/de, no fallback, no old API residue, key consistency

Output

  1. i18n Context
  2. Old Implementation Analysis
  3. Proposed Lingui Strategy
  4. Migration / Addition Plan
  5. Catalogue Update
  6. Functional Verification

Guardrails

  • Never reintroduce old API
  • Never mix Lingui + old system
  • Always use correct imports: @lingui/react/macro, @lingui/react, @lingui/macro
  • Respect existing patterns in component

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon