Date format does not get reflected when changing the post language
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- go
- 领域
- localization
调研方向
从 posts.go 大约第 1113 行开始,这里会根据帖子的语言选择日期格式,并按照列出的编辑、保存和重新加载步骤重现该行为。追踪本地化格式为何会短暂出现或被替换,然后验证将帖子改为非英语语言后,其本地化日期格式是否能始终一致地显示。
由索引模型根据 Issue 内容生成。
描述
Describe the bug
I was looking into options on how to change the date formats that show up on the home page as well as individual post pages.
I was aiming for a more international format e.g. "2022-01-18", so I tried changing the language to Lithuanian ("lietuvių kalba"), however it had no effect on the format.
When testing Portuguese I've noticed that when refreshing the page it changed the format for a short flash, however, after several milliseconds it fell back to the english version.
This part of the code seems to indicate that it should take the format based on the language.
Steps to reproduce
Steps to reproduce the behavior:
- Go to edit an existing post
- Change the language to some else than english e.g. portuguese
- Save the changes
- Reload the post
Expected behavior
Changing the post language would change the format of how the date is being displayed. Ideally there would be a way to change the default language per blog, but that's a bonus.
Application configuration
- Single mode or Multi-user mode? Single
- Database? mysql
- Open registration? no
- Federation enabled? yes
Version or last commit: v0.13.1
- 主要语言
- Go
- 星标
- 5.3k
- 派生
- 413
- 平均合并
- 3 天 5 小时
- 30 天内合并 PR
- 4
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
writefreely/writefreely 的其他 Issue
-
Docker healthcheck logs a 500 on every check可能已有人在做 @zackwag 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 82/100
writefreely/writefreely#1801 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 86/100
writefreely/writefreely#1764 · 1 条评论 ·
维护者通常 2 天内回复
-
panic: nil pointer dereference in initActivityPub when App.Host is empty or invalid可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
writefreely/writefreely#1753 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
writefreely/writefreely#1750 · 1 条评论 ·
维护者通常 2 天内回复
-
Accessibility: blog-menu-customize-CSS edit field cannot be read by blind users through screen readers可能已有人在做 @thebaer 于 24 天前认领。 未关闭accessibility
难度 3/5 1-2 天 新手友好度 52/100
writefreely/writefreely#1776 · 5 条评论 ·
维护者通常 2 天内回复
查看 writefreely/writefreely 的全部 Issue
相似的 Issue
-
agent/strategist help wanted roadmap
难度 2/5 1-3 小时 新手友好度 62/100
kubestellar/kubestellar-mcp#1414 · 1 条评论 ·
维护者通常 1 天内回复
-
area: pipeline priority: low type: bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
area: widgets type: bug
难度 2/5 1-3 小时 新手友好度 82/100
itadori26/trisse-home#905 ·
-
[Bug]: Packer activity unjoined-runtime test is flaky on Linux可能已有人在做 @depohmel 今天认领。 未关闭bug needs-triage
难度 2/5 1-3 小时 新手友好度 78/100
dsx-ai-factory/nvkr#707 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
nightgauge/nightgauge#3872 ·
维护者通常 1 天内回复