dates for config(locale = "nl")
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- R
- Sterne
- 2.7k
- Forks
- 641
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
When using config(locale = "nl") (Dutch) for data with dates, the month march is shown with the abbreviation "maa". In Dutch the default abbreviation of March is "mrt".
dates <- as.Date(c("2026-01-01", "2026-03-04", "2026-05-03", "2026-08-05", "2026-10-02"))
values <- c(10, 15, 7, 12, 9)
df <- data.frame(date = dates, value = values)
plot_ly(df, x = ~date, y = ~value, type = "scatter", mode = "lines+markers") %>% layout( xaxis = list(title = "Date"), yaxis = list(title = "Value") ) %>% config(locale = "nl")
When I look in plotly-locale-nl.js in shortMonths:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"], it is "mrt". So I cannot pinpoint where it is being altered to "maa". Is this something that can be fixed?
Thank you.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit dem Pfad config(locale = "nl") und vergleiche die Formatierung der Datumsachse mit plotly-locale-nl.js, insbesondere dessen Wert shortMonths. Reproduziere das bereitgestellte plotly-Beispiel und verfolge, wo "mrt" zu "maa" wird; abgeschlossen, wenn niederländische Datumsachsen die erwartete Märzabkürzung anzeigen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript, r
- Bereich
- data-visualization, internationalization
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 55/100