Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#5 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
55/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
静か
技術スタック
typescript

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
490
フォーク
47
平均マージ
9時間 32分
マージ済み PR(30日)
75

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

GoDiao/dreamcoder のほかの issue

GoDiao/dreamcoder の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。