diff --git a/.claude/skills/transifex/SKILL.md b/.claude/skills/transifex/SKILL.md index 55e71b2..7071ef5 100644 --- a/.claude/skills/transifex/SKILL.md +++ b/.claude/skills/transifex/SKILL.md @@ -94,12 +94,29 @@ const label = t('attendance', 'copy') {{ t('attendance', 'Required') }} ``` -Rules: - -- The comment binds only to the **first** translation call on the - following line — one call per line, each with its own comment. +Rules (empirically verified against the extractor, not just the docs): + +- The comment binds **only to the first `t()` call on the immediately + following line**. A `t()` two lines down — multi-line ternary, + multi-line attribute binding, element tag line without the + translated attribute — silently gets nothing. Restructure instead: + ternaries become if/else or a computed/function with one comment per + `return t(…)` line; template attribute bindings either go on the tag + line directly after the comment or move into a computed. +- The second `t()` of a one-line ternary also gets nothing — one call + per line, each with its own comment. - In Vue `