Skip to content

docs(copy): explain how copy is added and checked (#225) - #254

Merged
juancguerrerodev merged 9 commits into
DojoCodingLabs:mainfrom
saurabhbhoir456:docs/copy-readme-225
Dec 6, 2026
Merged

juancguerrerodev merged 9 commits into
DojoCodingLabs:mainfrom
saurabhbhoir456:docs/copy-readme-225

Conversation

@saurabhbhoir456

@saurabhbhoir456 saurabhbhoir456 commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

Closes #225

Every string a person sees in the app is a key in packages/copy, so almost every UI change touches it, but the
package had no README and the rules were spread over AGENTS.md, the tests and the translator code. This adds
packages/copy/README.md, short and in plain English, covering: what lives here (locales/en.json,
locales/es-419.json and the translator in src/index.ts); how a key is named from KEY_PATTERN
(HM-XXX-NN.element or common.*, each with a real example); how to add a string (the same key and the same
{placeholders} in both files, then t("...") from apps/mobile/src/i18n.ts); what the translator does with a
missing key or value (it throws, so a blank never ships); how tCount() picks key.one at a count of 1 when that
form exists (shown with the real HM-SET-02.count pair in both languages); the house style the tests enforce (no em
or en dashes, tú and never vos, Latin American Spanish as es-419, each pointed at the test that checks it); how to
run the tests; and that the website has its own locale files with the same rules. Examples use keys that already
exist, and the Spanish example uses tú.

CONTRIBUTING.md now links to it from "Ways to help", next to "Improve the docs, or the Spanish and English copy".

How to check

pnpm --filter @hermit/copy test
pnpm --filter @hermit/mobile test

Verified here: @hermit/copy passes 21/21, and the copy-keys test inside the mobile suite passes on its own (every
literal key named in the app and package source exists in both locales). The full mobile suite in this Windows
checkout also shows pre-existing failures in source-scan tests (doubled C:\C:\ paths), untouched by this change.
The README itself has no em or en dashes, and every relative link in it resolves.

Docs only: no locale file or test changes.


Pull request template

What and why

Closes #225.

Writes the packages/copy README the issue asked for, and links it from CONTRIBUTING.

Vision fit

Principle 5, Spanish and English first-class: how copy is added, in both languages, now has one short place to learn it.

Non-negotiables

  • This keeps every non-negotiable in AGENTS.md as it is.
  • Or it changes one, and this is the accepted RFC: n/a

Checklist

  • It closes one issue, linked above, or it's a small fix (a typo, a broken link, a wrong comment). A feature has an accepted proposal.
  • I wrote the failing test first. It fails without this change and passes with it. Docs only; no code or locale change to fail against first. Every rule in it was checked against the code and tests it describes.
  • These pass: pnpm check:privacy, pnpm typecheck, pnpm lint, pnpm test and node scripts/guard/check.mjs --patterns scripts/guard/patterns.txt. Gate note: privacy and guard pass on this checkout today; the rest was run per package as listed under AI agents, not as one root gate on this Windows machine, where unrelated pre-existing failures appear in the site badges, the devices table and mobile source scans.
  • No new network call, telemetry, analytics, ads or crash reporting. (A new request in an app adapter is explained below, with its host, skill and risk.)
  • No new dependency, or the reason for each one is below.
  • Every UI string is in packages/copy, in es-419 and en, with matching keys and placeholders, and no em or en dashes.
  • Tests, fixtures and screenshots use made-up data only.

Model path

  • This doesn't touch the model path: packages/model, agent, skills or eval, the prompt, the router, tool descriptions, normalizers, examples or the model file.
  • It does. The eval numbers from before and after are below, run as docs/evals.md says. No held-out case was tuned on.

Screenshots

  • No UI change.
  • UI change. Each changed screen is below, in both themes and both languages, with made-up data.

New dependencies and network calls

None. No new dependency and no new network call.

AI agents

  • No AI agent wrote any part of this.
  • An AI agent helped. Which one, and what it did: Tinsel Alpha, an AI coding agent running in OpenCode, drafted the change and this description and ran the checks below, in a session directed by the author, who reviewed each step's report before it was pushed.
  • I read and ran everything in this pull request, and I can explain it.

What was run: pnpm --filter @hermit/copy test (21/21); the mobile copy-keys test on its own (2/2). The full mobile suite shows pre-existing Windows source-scan failures in this checkout.

@juancguerrerodev

Copy link
Copy Markdown
Contributor

Ready to merge once the pull request template is filled in, including the "I read and ran everything" box (details on #234). 🦀

@juancguerrerodev
juancguerrerodev merged commit 8d6ff59 into DojoCodingLabs:main Dec 6, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Write a README for packages/copy

3 participants