All products

Add Lingui translator comments with AI

Explain ambiguous labels and placeholders in the catalogue so a translator understands the screen without having to reconstruct it from a short string.

Add Lingui translator comments with AI when “Open” appears on both a file button and a list of unresolved cases. A translator who sees only the word has a genuine choice to make. The enhanced-message-context skill guides an agent to the component, product terminology and nearby usage before it writes a short note in the catalogue.

The note should answer a question the message leaves open. For a placeholder, that might be whether a number represents guests, nights or rooms. For a status, it might be whether a user can click the label. Clear messages need less attention than a handful of ambiguous ones.

What it does

  • Distinguish an action label from a status with the same wording.
  • Explain the value substituted into a message at runtime.
  • Clarify an industry term that means something different in ordinary speech.
  • Keep a translator hint separate from context that changes a message’s identity.
  • Inspect the extracted catalogue to make sure the note appears where the translator works.

Install and use

  1. Provide a local Lingui project, its message sources and the surrounding screen or component. Use the project’s extractor to inspect the result.
  2. Ask, “Review the booking labels and add comments only where the translator needs to know what a button does or what a number means.”
  3. Read the catalogue as a translator and remove notes that merely repeat the visible English.

FAQ

Source

Made by Lingui. Original skill: enhanced-message-context, published on GitHub under the MIT licence.

View on GitHub