FeatureFuel
0

Status page: incident relative time is not translated

Source: louislam/uptime-kuma#7962 · opened by @corentios
πŸ“‘ I have found these related issues/pull requests I searched issues and pull requests for "fromNow", "minutes ago", "relative time" and "dayjs locale" and found no existing report of this. #7876 is related but different: it asks for a user-selectable format for absolute dates (e.g. dd.mm.yyyy). This issue is only about the relative part ("14 minutes ago") not being translated. πŸ›‘οΈ Security Policy β€’ I have read and agree to Uptime Kuma's [Security Policy]( πŸ“ Description On a status page, the relative time shown next to an incident date is always in English, while the rest of the sentence is translated. Cause: dateFromNow() in src/pages/StatusPage.vue returns dayjs.utc(date).fromNow(). The dayjs locale is never set, so it always falls back to English. The surrounding strings (dateCreatedAtFromNow, lastUpdatedAtFromNow) are translated correctly. Also reproducible on current master. <img width="872" height=…

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests