Closed Bug 1687910 Opened 4 years ago Closed 4 years ago

Year is formatted as a number in CFR MILESTONE_MESSAGE

Categories

(Firefox :: Messaging System, defect, P1)

defect

Tracking

()

RESOLVED FIXED
87 Branch
Iteration:
87.1 - Jan 25 - Feb 7
Tracking Status
firefox87 --- fixed

People

(Reporter: flod, Assigned: emcminn)

Details

Attachments

(2 files)

Attached image immagine.png

This is the current translation for zh-CN, but the problem happens also on zh-TW where it was originally reported.

自{ $date }起,{ -brand-short-name } 已拦截超过 <b>{ $blockedCount }</b> 个跟踪器!

The code is here.

Trying out with a zh-CN build, the language seems correct ("zh-CN"), and formatting is correct too (2020年1月 for dateFormat(new Date("2020-01-20"))), so something happens when the value is passed over to Fluent.

I have the feeling the problem is in this code. And just to confirm. monthName is correct after formatting with zh-CN.

Thanks for debugging. The fix here should be moving the date formatting into Fluent.

Assignee: nobody → emcminn
Iteration: --- → 87.1 - Jan 25 - Feb 7
Priority: -- → P1
Pushed by emcminn@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3eaef8a1114d Move date calculation to Fluent for Milestone CFR r=andreio,fluent-reviewers
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: