dates for config(locale = "nl")
还没有人认领这个 Issue。
- 主要语言
- R
- 星标
- 2.7k
- 派生
- 641
- PR 合并指标
- 30 天内没有已合并 PR
描述
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.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 config(locale = "nl") 路径开始,将日期轴格式化与 plotly-locale-nl.js 进行比较,尤其是其 shortMonths 值。复现提供的 plotly 示例,并追踪 "mrt" 变为 "maa" 的位置;当荷兰语日期轴显示预期的三月缩写时即完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, r
- 领域
- data-visualization, internationalization
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 55/100