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

Offen Anfängerfreundlich
#36 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
90/100
Issue-Typ
Dokumentation
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
typescript

Rechercherichtung

Beginne mit apps/site/test/locales.test.ts und vergleiche die spanischen Zeichenfolgen der App in packages/copy/locales/es-419.json mit den entsprechenden Einträgen der Website in apps/site/locales/es-419.json. Füge die angeforderten Prüfungen auf Gleichheit und Formulierung hinzu und aktualisiere anschließend die angegebenen spanischen Werte, wobei die Bedeutung und die tú-Form erhalten bleiben. Führe pnpm --filter @hermit/site test aus; fertig ist die Aufgabe, wenn die Tests bestehen und die englische Locale unverändert ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.
Vorherrschende Sprache
TypeScript
Sterne
11
Forks
0
Ø Merge
10 Min.
Gemergte PRs (30 T.)
6

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus DojoCodingLabs/hermit

Alle Issues in DojoCodingLabs/hermit

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.