agentleFS
forcedotcomforcedotcom/salesforcedx-vscode/.claude/skills/i18n-messages/SKILL.md

i18n-messages

Skill1k starsChanged 28 days agoBSD-3-ClauseView on GitHub

Editing extension i18n message files and their consumers. Use when editing packages/*/src/messages/i18n.ts, adding/changing nls.localize strings, or choosing placeholder tokens (%s/%d/...).

Adopted by

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Sep 20: 0 new projectsWeek of Sep 27: 0 new projectsWeek of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projectsWeek of Nov 8: 0 new projects
Sep 2026Oct 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Who's talking about forcedotcom/salesforcedx-vscode

The biggest 5 of 52 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 52

Talked about on GitHub and Stack Overflow (52 times).

On GitHub · 50

45 more on GitHub

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Default: counts → %d, strings → %s.

    line 30
  2. Very specific:

    Don't prefix new strings with Error:/Warning: — the show*Message API supplies severity.

    line 60

≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

i18n Messages

Scope:

  • packages/*/src/messages/i18n.ts + code consuming those messages via nls.localize
  • NOT package.json/package.nls.json nls strings (command titles etc.)
  • NOT unrelated code

Placeholder semantics

nls.localize(key, ...args) substitutes via node:util.format — packages/salesforcedx-vscode-i18n/src/i18n/message.ts:50 (return format(possibleLabel, ...labelArgs)).

TokenUseBehavior (node:util.format)
%sstringstring
%dcount/numbernumber as-is (3.7→3.7, no truncation)
%iintegertruncates float (3.7→3)
%ffloatfloat
%jvalueJSON
%o %Ovalueinspected object
%c—CSS directive, no output
%%literal %% only when args present; bare string skips format() (message.ts:37 args.length > 0 guard) and keeps %%
%nNONEunsupported — renders literal %n, NOT substituted

Default: counts → %d, strings → %s. (Origin: Removed %n orgs shipped literal %n.)

Arg-count gotcha

message.ts:39 counts specifiers with /%[sdifj%]/g (%% excluded, L40). On mismatch it logs and trims extra args (L41-48); missing args are NOT filled — trailing unmatched tokens render literally.

  • %o %O %c substitute at runtime but are NOT in that regex → they escape arg-count validation. Avoid relying on them; prefer %s/%d/%j.
  • %n is not counted and not a real token → expected-count is off by what you intended and the %n prints literally.

Reuse first

grep package.nls.json for an existing equivalent before adding — reuse, don't duplicate.

Per-surface style

From salesforcedx-vscode-org (src/messages/i18n.ts, package.nls.json):

SurfaceExampleCapPunctuation
Command title (package.nls.json *_text)SFDX: Create a Default Scratch Org...Title Case, SFDX: prefixnone (... ok for further input)
QuickPick/InputBox placeholderi18n.ts:67 Select scratch orgs and sandboxes to deletesentencenone
Confirm prompti18n.ts:68 Permanently delete %d org(s)? This cannot be undone.sentenceterminal ./?
Notification (show*Message)i18n.ts:92 ... orgs expire in the next %d days. ...sentenceterminal .
Button/action labeli18n.ts:69,70 Delete, LogoutTitle Casenone
Tree/status-bar label+tooltipi18n.ts:96 Open Default Org in BrowserTitle Casenone
Log/channel line—sentence.
Validation error—sentenceterminal .

No severity prefix

Don't prefix new strings with Error:/Warning: — the show*Message API supplies severity. i18n.ts:92 (Warning: One or more...) is a legacy anti-pattern; don't copy it, and don't edit it (out of scope). See vscode-window-messages.

Cross-ref

vscode-window-messages covers the notification/button API (which show*Message, return values, Effect, modal). This skill is the message text. Don't duplicate API guidance here.

package.json / package.nls.json command titles, menus, and notification slot keys: command-ui.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.