The WhatsApp conversation list shows the status "open" in English on every language
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 88/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript, wordpress
調査の方向性
plugins/whatsapp/frontend/ConversationList.tsx を読み、plugins/importer/frontend/importFields.tsx にある既存の stateLabels() ヘルパーと比較してください。翻訳済みラベルを追加し、フォールバックには生の値を使ってから、issue に記載された ConversationList と locale のテストを実行してください。既知のステータスに翻訳済みラベルが表示され、未知のステータスも表示されたままで、スペイン語で「Open」が「Abierta」と解決されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
What happens
Each row in the WhatsApp conversation list shows a status badge. On a Spanish admin the badge still reads "open", while the rest of the row is Spanish, such as "Ayer" for the time.
ConversationList puts the stored value straight into the badge: <Badge>{conversation.status}</Badge>. The server stores the word open for every new conversation. That word is data, so it never passes through __(). It never reaches the plugin's .pot and no translator can see it. The Spanish catalogue only holds the hidden "status" label next to the badge.
WordPress never prints a stored status slug. The Posts screen marks a draft with the label from get_post_states(), so a Spanish site reads "Borrador", not "draft".
What should happen
The badge shows a translated label for each status the server stores. A Spanish admin reads "Abierta". A status the frontend does not know yet still shows its raw value, so the badge never goes blank.
The importer already does this. stateLabels() in plugins/importer/frontend/importFields.tsx maps each stored state to an _x() label, read fresh so the loaded catalogue answers, and falls back to the raw value.
Where
plugins/whatsapp/frontend/ConversationList.tsx, the<Badge>in the.alphone-conversation__bottomrow- a new
statusLabels()helper there, with_x('Open', 'conversation status', 'alphone-whatsapp') plugins/whatsapp/languages/alphone-whatsapp.pot,plugins/whatsapp/languages/es-ES.poandplugins/whatsapp/frontend/languages/es-ES.json, refreshed withmake translationsplugins/whatsapp/frontend/test/ConversationList.test.tsx, a test that the badge reads "Open" and one that an unknown status shows its raw valueplugins/whatsapp/frontend/test/locale.test.ts, a test that the Spanish catalogue answers "Abierta" forconversation status\u0004Open, likeplugins/importer/frontend/test/declarations.test.ts
- 主要言語
- Go
- スター
- 287
- フォーク
- 64
- 平均マージ
- 13時間 36分
- マージ済み PR(30日)
- 64
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
gopherium/AlphOne のほかの issue
-
help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
gopherium/AlphOne#296 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
good first issue help wanted javascript
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
bug help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
bug help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
gopherium/AlphOne の issue をすべて見る
似ている issue
-
orchestrator: NFS-cache "cache path is not set" WARN logged on every build/launch instead of onceオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 2 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 65/100
influxdata/telegraf#20031 ·
メンテナーはふだん 1 日以内に返信
-
pkg/registry/file no longer builds for GOOS=windows: unguarded syscall.Stat_t in qualified_resource_migration.go対応中かも @AnshulPatil2005 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
OneBusAway/maglev#1914 ·
メンテナーはふだん 2 日以内に返信
-
[Bug] The Router doesn't log why it refused a request対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug needs-acceptance wg/data-plane-networking
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
vllm-project/semantic-router#5680 ·
メンテナーはふだん 2 日以内に返信