Provide additional context for messages based on the codebase and the context of the message to improve the quality of the translations.
SkillScore100Maintained
Automatic
◆Translation & Localization pack
Last verified 8/19/2026
What it changes
Passed 22 of 22 test cases with the skill, and 19 of 22 without it.
Without skill86%
With skill100%
Checks it passed that the model alone missed
Clarifies in the comment that Close is a verb for closing a dialog
Explicitly notes in the comment whether Tag is used as a verb or noun
Specifies in the comment that Status is a column header in the projects table
3 fixed19 passed either way0 still failing0 broke
Pass-rate lift
+14 pp
Tokens
+90%
Agent turns
0%
Response time
-41%
Model gemini-3.6-flashMeasured 8/19/2026v122 of 22 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 3 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 3
Prompt
A popover menu includes an entry for tagging items: `<Trans>Tag</Trans>`. Upgrade this using `@lingui/react/macro` to clear up word class ambiguity.
What was checked, without and with the skill
Checked
Without skill
With skill
Adds a comment prop to the Trans component
Passed
Passed
Explicitly notes in the comment whether Tag is used as a verb or noun
Missed
Passed
case-12 · gemini-3.6-flash · 8/19/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md224 linessingle file
Enhanced Message Context
When implementing Lingui i18n, add translator comments to messages so translators have context to provide the best translation. Even when the message text is self-explanatory, it is important to know where and how it appears in the UI to choose the correct tone, length, and wording.
When to Add Comments
Add a comment field when the message:
Is ambiguous: Short words/phrases that can be different parts of speech
"Back" (noun or verb?), "Delete" (button or confirmation?), "Close" (verb or adjective?)
Lacks UI context: Labels isolated from their surroundings
Table column headers, tooltip content, standalone button labels, menu items
Has domain-specific meaning: Terms with different meanings across contexts
"Post" (verb or noun?), "Tag" (noun or verb?), "Follow" (social media or instruction?)
Depends on grammatical gender: The translation depends on what the message refers to
"Selected" (masculine/feminine/neutral depends on what is selected)
Uses unclear variables: Placeholder names don't reveal what they contain
Could benefit from UI context even if clear: Where the text appears (button, dialog, banner, form field) affects tone and length - add a brief location or purpose comment when it helps.
Writing Effective Comments
A good translator comment includes:
Location: Where in the UI the message appears
"Button in the top navigation bar"
"Tooltip for the save icon"
"Column header in the users table"
Action/Purpose: What happens or what it means
"Navigates back to the previous page"
"Deletes the selected item permanently"
"Shows the number of unread notifications"
Disambiguation: Clarify part of speech or meaning
"Used as a verb, not a noun"
"Refers to email addresses, not postal addresses"
"Singular form, user will see 'item' or 'items' based on count"