Locale dictionary not being included even though they exist
Personne n'a encore pris cette issue.
- Langage dominant
- JavaScript
- Étoiles
- 18.3k
- Forks
- 2k
- Merge moyen
- 2 j 12 h
- PR mergées (30 j)
- 28
Description
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.
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.
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par lib/locales/no.js et comparez son dictionnaire exporté et ses formats avec ceux de la locale es fonctionnelle. Reproduisez le problème avec les locales no et ro, puis suivez la manière dont les dictionnaires de locales sont importés ou enregistrés. La tâche est terminée lorsque les dictionnaires no et ro sont remplis et que leurs traductions de modebar sont appliquées, tout en conservant un formatage correct.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript
- Domaine
- internationalization
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 42/100