Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[good first issue] Replace remaining hardcoded zh/en strings with i18n keys

Đang mở
#5 2 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
55/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
typescript

Hướng nghiên cứu

Start in desktop/src/i18n/ to see how the t('namespace.key') keys and the zh/en locale JSON files are organised, then grep desktop/src/components/settings/ and desktop/src/pages/ for Chinese characters and long English literals inside JSX. Done when each literal is replaced by a key present in both the zh and en locale files and the UI renders the same text in both languages. The optional CI grep for new Chinese characters in .tsx files is not required for completion.

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

Mô tả

area:desktop area:i18n difficulty:1 good first issue mentor-available

Background

DreamCoder ships with full zh/en bilingual support via desktop/src/i18n/. However, a handful of hardcoded Chinese / long English strings still live inside components (especially under desktop/src/components/settings/ and a few page-level files). Migrating them is a great first task to learn the codebase.

ProviderOnboarding was already migrated in #59 — use it as a reference.

Tasks

  • Grep desktop/src/ for Chinese characters and long English literal strings inside JSX
  • Pick a key name that follows the existing flat naming (e.g. settings.general.xxx, common.xxx)
  • Add the new keys to both desktop/src/i18n/locales/en.ts and desktop/src/i18n/locales/zh.ts
  • Replace the literal with t('your.key'), where t comes from useTranslation() in desktop/src/i18n
  • (Bonus) Add a tiny lint rule or CI grep that fails when new Chinese characters appear in .tsx

Files of interest

  • desktop/src/i18n/
  • desktop/src/components/settings/**
  • desktop/src/pages/**

Difficulty / Estimate

⭐ — 1 to 2 hours.

Mentor

Ping the maintainer in the PR — happy to help reviewers / pair on tricky strings.

Ngôn ngữ chính
TypeScript
Star
490
Fork
47
Merge trung bình
9 giờ 31 phút
Pull request đã merge (30 ngày)
76

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 GoDiao/dreamcoder

Tất cả issue của GoDiao/dreamcoder

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.