i18n: hardcoded English UI strings can't be translated
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 40/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- react, tailwindcss, typescript
調査の方向性
Start with the LanguageSwitcher, PhoneInput and NavBar components, finding the hardcoded strings listed in the issue table. Decide how the proposed optional labels prop and its typed keys should look, and how Intl.DisplayNames fits PhoneInput country names; the issue leaves both open. Done means exported *Labels types with TSDoc, a docs section with a translated example, and tests showing custom labels render.
索引モデルが issue の本文から書いたものです。
説明
i18n: hardcoded English UI strings can't be translated
For a localization library, the components ship non-translatable English text:
| Component | Strings |
|---|---|
LanguageSwitcher |
Search..., Search languages, No results, Select language, Current language: … |
PhoneInput |
Select country, Search countries..., Search countries, country names (English only) |
NavBar |
Select language, Current language: …, Toggle menu, GitHub |
Proposal
Add an optional labels prop per component with typed keys and English defaults, e.g.:
<LanguageSwitcher
locales={locales}
labels={{
search: "Rechercher…",
noResults: "Aucun résultat",
listbox: "Choisir la langue",
current: (name) => `Langue actuelle : ${name}`,
}}
/>
For PhoneInput country names, consider Intl.DisplayNames with a displayLocale prop.
Acceptance
- Exported
*Labelstypes, TSDoc on each key - Docs page section showing a translated example
- Tests asserting custom labels render
- 主要言語
- TypeScript
- スター
- 39
- フォーク
- 16
- 平均マージ
- 2日 5時間
- マージ済み PR(30日)
- 12
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
babelize/babelize-elements のほかの issue
-
bug website
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
babelize/babelize-elements#46 ·
メンテナーはふだん 1 日以内に返信
-
bug language-switcher priority: medium
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
babelize/babelize-elements#26 ·
メンテナーはふだん 1 日以内に返信
-
component enhancement help wanted
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
babelize/babelize-elements#47 ·
メンテナーはふだん 1 日以内に返信
-
bug component rtl-layout
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
babelize/babelize-elements#45 ·
メンテナーはふだん 1 日以内に返信
-
Website: revamp and improve the landing page対応中かも @anjalinayak01 が 7 日前に担当しました。 オープンenhancement help wanted priority: medium website
難易度 4/5 1週間以上 初心者へのやさしさ 30/100
babelize/babelize-elements#37 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
babelize/babelize-elements の issue をすべて見る
似ている issue
-
area:plugins enhancement platform:vscode
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
anthropics/claude-code#103166 ·
メンテナーはふだん 1 日以内に返信
-
check:failed streams:add
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
iptv-org/iptv#55744 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
jitsi/jitsi-meet#18021 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
spec: discovery input example can contain multiple aliases for one parameter, with no canonical oneオープン
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
x402-foundation/x402#3841 ·
メンテナーはふだん 1 日以内に返信