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

Đang mở Phù hợp với người mới
#36 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
90/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
internationalization

Hướng nghiên cứu

Bắt đầu với apps/site/test/locales.test.ts và so sánh các chuỗi tiếng Tây Ban Nha của ứng dụng trong packages/copy/locales/es-419.json với các mục tương ứng của trang web trong apps/site/locales/es-419.json. Thêm các kiểm tra được yêu cầu về tính đồng nhất và cách diễn đạt, sau đó cập nhật các giá trị tiếng Tây Ban Nha được chỉ định, đồng thời giữ nguyên ý nghĩa và cách dùng tú. Chạy pnpm --filter @hermit/site test; hoàn tất khi các bài kiểm tra đạt và locale tiếng Anh không thay đổi.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
TypeScript
Star
11
Fork
0
Merge trung bình
10 phút
Pull request đã merge (30 ngày)
6

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DojoCodingLabs/hermit

Tất cả issue của DojoCodingLabs/hermit

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.