Skip to content

Is there a way to control capitalization when using DATETIME? #299

Open
@elisehein

Description

@elisehein

We use the DATETIME filter in one of our Fluent strings to format an ISO date string to just output the weekday name (Monday): {DATETIME($isoString, weekday: "long")}

Is there a way to specify whether the weekday name should be capitalized or not, regardless of the locale's capitalization rules?

In the English case, the weekday occurs in the middle of the sentence, and anyway it's not of any consequence because weekdays are capitalized in English. In Hungarian, however, the weekday ends up being the first word in the string. Because weekdays are not capitalized in Hungarian, we end up with a sentence that isn't capitalized.

Is this something we can address using Fluent alone, or should we be fixing it somewhere else in the stack?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions