[MGNLUI-6542] API to grab language's date formats Created: 01/Feb/21  Updated: 02/Feb/21

Status: Open
Project: Magnolia UI
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Neutral
Reporter: Maxime Michel Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to PUBLISHING-97 Translate Publishing using Lokalise Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty

 Description   

While working on PUBLISHING-97, I stumbled upon a key (publishingMonitor.dateformat) and some code that do something useful, but in the wrong place IMHO. I'm talking about the following: https://git.magnolia-cms.com/projects/MODULES/repos/publishing/browse/magnolia-publishing-app/src/main/java/info/magnolia/publishing/app/monitor/PublishingMonitorViewImpl.java#265-266

It shouldn't be an app's responsibility to translate date formats, instead, they should come from UI (or core), and be supplied by us. I don't believe we have the tooling to do that yet.

User stories:

  • As a non-English Magnolia user, I would like dates to be formatted in a native way, if I have updated my preferences to use Magnolia in my own language.
  • As a Magnolia core/app developer, I want to be able to grab the default date format for the user in a standard way.

Generated at Mon Feb 12 09:37:32 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.