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

未关闭 适合新手
#36 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
90/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript

调研方向

从 apps/site/test/locales.test.ts 开始,将 packages/copy/locales/es-419.json 中应用的西班牙语字符串与 apps/site/locales/es-419.json 中网站对应的条目进行比较。添加所要求的一致性和措辞检查,然后更新指定的西班牙语值,同时保留原意和 tú 形式。运行 pnpm --filter @hermit/site test;测试通过且英文 locale 未改变即为完成。

由索引模型根据 Issue 内容生成。

描述

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.
主要语言
TypeScript
星标
11
派生
0
平均合并
10 分钟
30 天内合并 PR
6

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

DojoCodingLabs/hermit 的其他 Issue

查看 DojoCodingLabs/hermit 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。