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

Aberta Para iniciantes
#36 1 comentário 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
90/100
Tipo de issue
Documentação
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
typescript

Direção de pesquisa

Comece por apps/site/test/locales.test.ts e compare as strings em espanhol do app em packages/copy/locales/es-419.json com as entradas correspondentes do site em apps/site/locales/es-419.json. Adicione as verificações solicitadas de igualdade e redação e, em seguida, atualize os valores especificados em espanhol, preservando o significado e o uso de tú. Execute pnpm --filter @hermit/site test; o trabalho estará concluído quando os testes passarem e a locale em inglês permanecer inalterada.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.
Linguagem predominante
TypeScript
Estrelas
11
Forks
0
Merge médio
10min
PRs com merge (30d)
6

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de DojoCodingLabs/hermit

Todas as issues de DojoCodingLabs/hermit

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.