Add a test that the Spanish copy uses tú, not vos
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 87/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- json, typescript
调研方向
从 packages/copy/test/copy.test.ts 和 packages/copy/locales/es-419.json 开始;为列出的 voseo 示例添加 matcher 测试,包括带重音字母的边界,然后检查每个 locale 值。运行 pnpm --filter @hermit/copy test;当 matcher 测试能够捕获被移除的形式或失效的边界,且 locale 检查通过并且无需更改 locale 时,即为完成。
由索引模型根据 Issue 内容生成。
描述
Why
AGENTS.md rule 9 says the app's Spanish uses tú, and nothing checks it, while many people and coding agents write voseo without noticing. VISION.md's "voseo included" is about what people type to Hermit, which the eval sets cover; the app's own words use tú.
What to do
Today packages/copy/locales/es-419.json has no voseo. The test keeps it that way.
- Test first, in
packages/copy/test/copy.test.ts: write a small matcher for voseo forms and test it on made-up strings. "Tocá el botón" and "Si querés, te aviso" are flagged. "Toca el botón", "Si quieres, te aviso" and "No abrí nada" are not. - List only forms that can't be read another way, for example: podés, tenés, querés, sabés, hacés, decís, necesitás, preferís, tocá, mirá, probá, activá, revisá, volvé, poné, usá, agregá, cambiá, guardá, confirmá, dejá, buscá, esperá, fijate, acordate, decime, avisame, mandale, contame. Leave out words like "elegí" or "escribí", which are also the first person past tense.
- JavaScript's
\bdoesn't count accented letters as letters. Use(?<!\p{L})before and(?!\p{L})after, with theuandiflags. - Add a test that no value in
es-419.jsonmatches. It passes today; the matcher's own tests show it can fail.
Done when
pnpm --filter @hermit/copy testpasses with the new tests.- The matcher's tests fail if a form is removed from the list or the boundaries are broken.
- No locale file changes.
How to check
pnpm --filter @hermit/copy test
Keep in mind
- Test only. Change
es-419.jsononly if the test finds real voseo there; it finds none today. - Leave the eval sets alone: their voseo is on purpose.
- No em or en dashes in test names or messages either.
- 主要语言
- TypeScript
- 星标
- 11
- 派生
- 0
- 平均合并
- 10 分钟
- 30 天内合并 PR
- 6
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
DojoCodingLabs/hermit 的其他 Issue
-
docs good first issue
难度 2/5 1-3 小时 新手友好度 87/100
DojoCodingLabs/hermit#73 ·
维护者通常 1 天内回复
-
device-lab
难度 2/5 1-3 小时 新手友好度 70/100
DojoCodingLabs/hermit#45 ·
维护者通常 1 天内回复
-
device-lab
难度 2/5 1-3 小时 新手友好度 62/100
DojoCodingLabs/hermit#44 ·
维护者通常 1 天内回复
-
device-lab
难度 2/5 1-3 小时 新手友好度 72/100
DojoCodingLabs/hermit#43 ·
维护者通常 1 天内回复
-
agent-friendly docs good first issue
难度 2/5 1-3 小时 新手友好度 88/100
DojoCodingLabs/hermit#39 ·
维护者通常 1 天内回复
查看 DojoCodingLabs/hermit 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 86/100
superlinked/sie#1033 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
remix-run/react-router#15838 ·
维护者通常 1 天内回复
-
area/ci bug
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
melgarafael/DeskcommCRM#5290 ·
维护者通常 1 天内回复