Description
As I'm implementing Dates in DataProvider and testing them using DateTimeFormat
, I have some questions about how should we structure that.
Generally, the data in question looks like this: https://github.com/unicode-cldr/cldr-dates-modern/tree/master/main/en
It has (per locale):
- display names for Months, Weekdays, DayPeriods, Quarters, Eras
- patterns for time, date, and date_time
- list of best patterns for skeletons
- interval patterns
- time zone names
- relative display names
For now, we need:
- display names for months, weekdays, day periods
- patterns for time, date and date_time
- list of best patterns for skeletons
Display names come in different:
- contexts ("format" and "stand_alone")
- widths ("abbreviated", "narrow", "short", "wide")
but they also can be for different calendar systems (I see at least "generic" and "gregorian").
As far as I understand DataProvider
we have some flexibility in what do we request and what we get in response.
We could, for example, put "months/format/narrow"
as a variant in DataEntry
and gregory
in DataKey
and get just a list of month names in "format"
and "narrow"
for "gregory"
calendar.
Or, we can just ask for "gregory"
and set no variant
in DataEntry
and get all display names for all contexts and all widths.
@sffc - what are your thoughts on that? How should a request/response look like?
Metadata
Metadata
Assignees
Labels
Type
Projects
Status