Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#5 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
55/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
typescript

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
490
Fork
47
Merge medio
9h 38m
PR unite (30g)
75

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di GoDiao/dreamcoder

Tutte le issue di GoDiao/dreamcoder

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.