The WhatsApp conversation list shows the status "open" in English on every language
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
- Área
- internationalization
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
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
- 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
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de gopherium/AlphOne
-
good first issue help wanted javascript
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
bug help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
bug help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
bug help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
documentation help wanted
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
Todos los issues de gopherium/AlphOne
Issues similares
-
status:needs-review type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Gentleman-Programming/engram#2079 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
limitlessprojects/Go-Hybrid#1377 ·
Los mantenedores suelen responder en 1 día
-
bug report
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Los mantenedores suelen responder en 1 día