plotly / plotly/plotly.js

Locale dictionary not being included even though they exist

Abierto
#7,450 1 comentario 1 reacción 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

bug P1
Lenguaje dominante
JavaScript
Estrellas
18.3k
Forks
2k
Merge medio
2 d 12 h
PR fusionados (30 d)
28

Descripción

I have included several of the Plotly Locales in my project before (es, pt-br, zh-ch, ar) and now I am trying to include Norwegian (no) but the translations dictionary is not working when setting "no" as the locale. The dictionary is returning an empty object.
The formatting is working and the dates and times are being translated to norwegian as they should be, but the modebar buttons are remaining english even though the dictionary translations are included in the plotly.js/lib/locales/no.js file.

I tested this with a couple of other languages to check that I wasn't missing something and the same problem occurs if I try to use romanian (ro) - the formatting is correct and present, but the dictionary translations are not working even though they are included in the file.

Image shows the plotly config including several languages, see that the Spanish (es) locale shows the occupied dictionary translations as it should, but the Norwegian (no) locale shows an empty object for the dictionary, however, includes the formats.
Image

Summary:
Norwegian locale dictionary is not working (returning empty objects when importing) even though the translations are included in plotly.js/lib/locales/no.js. Same problem occurs with Romanian - possibly others.

Guía de contribución

Abrir la 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.

Línea de trabajo

Comienza con lib/locales/no.js y compara su diccionario exportado y sus formatos con el locale es funcional. Reproduce el problema usando los locales no y ro y, después, sigue cómo se importan o registran los diccionarios de locales. Se considera terminado cuando los diccionarios no y ro están completos y se aplican sus traducciones de modebar, mientras el formato sigue siendo correcto.

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

Evaluación

Stack tecnológico
javascript
Área
internationalization
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
42/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.