Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

The WhatsApp conversation list shows the status "open" in English on every language

Abierto Apto para principiantes
#262 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
88/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript, wordpress

Línea de trabajo

Lee plugins/whatsapp/frontend/ConversationList.tsx y compara el helper stateLabels() existente en plugins/importer/frontend/importFields.tsx. Añade etiquetas traducidas con un valor bruto como alternativa y ejecuta las pruebas de ConversationList y de locale indicadas en la issue. La tarea estará completa cuando los estados conocidos muestren etiquetas traducidas, los estados desconocidos sigan siendo visibles y en español «Open» se resuelva como «Abierta».

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug help wanted

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__bottom row
  • a new statusLabels() helper there, with _x('Open', 'conversation status', 'alphone-whatsapp')
  • plugins/whatsapp/languages/alphone-whatsapp.pot, plugins/whatsapp/languages/es-ES.po and plugins/whatsapp/frontend/languages/es-ES.json, refreshed with make translations
  • plugins/whatsapp/frontend/test/ConversationList.test.tsx, a test that the badge reads "Open" and one that an unknown status shows its raw value
  • plugins/whatsapp/frontend/test/locale.test.ts, a test that the Spanish catalogue answers "Abierta" for conversation status\u0004Open, like plugins/importer/frontend/test/declarations.test.ts
Lenguaje dominante
Go
Estrellas
287
Forks
64
Merge medio
13 h 36 min
PR fusionados (30 d)
59

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de gopherium/AlphOne

Todos los issues de gopherium/AlphOne

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.