Use the app's Spanish names for the Device lab on the site

Open Beginner friendly
#36 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
90/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript

Research direction

Start with apps/site/test/locales.test.ts and compare the app's Spanish strings in packages/copy/locales/es-419.json with the corresponding site entries in apps/site/locales/es-419.json. Add the requested equality and wording checks, then update the specified Spanish values while preserving meaning and the tú form. Run pnpm --filter @hermit/site test; done means the tests pass and the English locale is unchanged.

Written by the indexing model from the issue text.

Description

agent-friendly copy good first issue

Why

In Spanish the app calls the Device lab "Laboratorio del teléfono" and its report an "informe", while the site says "laboratorio de dispositivos" and "reporte", so a visitor won't find on the phone the name the site gave them. VISION.md, principle 5: Spanish and English, first-class.

What to do

Today the app's words are HM-SET-10.title ("Laboratorio del teléfono") and HM-SET-10.reportTitle ("Tu informe") in packages/copy/locales/es-419.json. The site's are in apps/site/locales/es-419.json: HM-SITE-01.labKicker, labBody, labStep2Title, labStep2Body and getBody.

  1. Test first, in apps/site/test/locales.test.ts:
    • the site's HM-SITE-01.labKicker equals the app's HM-SET-10.title, in en and in es-419 (read the app's files from packages/copy/locales/);
    • in es-419, HM-SITE-01.labBody, labStep2Title, labStep2Body and getBody never say "reporte" or "laboratorio de dispositivos".
      Watch it fail.
  2. Update those values in apps/site/locales/es-419.json: "Laboratorio del teléfono" for the lab and "informe" for the report, keeping each sentence's meaning and the tú form.
  3. Leave common.navLab ("Laboratorio") as it is: the header needs a short label.
  4. Leave "reportes de fallas" (crash reports) in HM-SITE-01.promiseTelemetryBody and HM-SITE-02.short1 alone: that is a different thing.

Done when

  • The new tests pass, and apps/site/locales/en.json is unchanged.
  • The site's Spanish names the lab and its report the way the app does.

How to check

pnpm --filter @hermit/site test

Keep in mind

  • Both site locale files keep the same keys and placeholders.
  • Plain words, the tú form, no em or en dashes. The site's tests also refuse some brand words and time words such as "pronto".
  • Don't change the app's copy in this issue.
Dominant language
TypeScript
Stars
11
Forks
0
Avg merge
10m
Merged PRs (30d)
6

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DojoCodingLabs/hermit

All issues in DojoCodingLabs/hermit

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.