Repository navigation
docs(copy): explain how copy is added and checked (#225) - #254
Merged
juancguerrerodev merged 9 commits intoDec 6, 2026
Merged
Conversation
10 of 16 tasks
Contributor
|
Ready to merge once the pull request template is filled in, including the "I read and ran everything" box (details on #234). 🦀 |
juancguerrerodev
force-pushed
the
docs/copy-readme-225
branch
from
December 6, 2026 07:57
77c2489 to
8d6ff59
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #225
Every string a person sees in the app is a key in
packages/copy, so almost every UI change touches it, but thepackage 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.jsonand the translator insrc/index.ts); how a key is named fromKEY_PATTERN(
HM-XXX-NN.elementorcommon.*, each with a real example); how to add a string (the same key and the same{placeholders}in both files, thent("...")fromapps/mobile/src/i18n.ts); what the translator does with amissing key or value (it throws, so a blank never ships); how
tCount()pickskey.oneat a count of 1 when thatform exists (shown with the real
HM-SET-02.countpair in both languages); the house style the tests enforce (no emor 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.mdnow links to it from "Ways to help", next to "Improve the docs, or the Spanish and English copy".How to check
Verified here:
@hermit/copypasses 21/21, and the copy-keys test inside the mobile suite passes on its own (everyliteral 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
Checklist
acceptedproposal.pnpm check:privacy,pnpm typecheck,pnpm lint,pnpm testandnode 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.packages/copy, in es-419 and en, with matching keys and placeholders, and no em or en dashes.Model path
packages/model,agent,skillsoreval, the prompt, the router, tool descriptions, normalizers, examples or the model file.Screenshots
New dependencies and network calls
None. No new dependency and no new network call.
AI agents
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.