icu4x icon indicating copy to clipboard operation
icu4x copied to clipboard

Add week-of-year to semantic skeletons

Open sffc opened this issue 1 year ago • 1 comments

Week-of-year should be added to semantic skeletons, both in CLDR and in ICU4X.

Previous issue: https://github.com/unicode-org/icu4x/issues/488

Week-of-year requires plurals support. Plurals are mostly supported in the data model already, so this should not require a breaking change.

The following fixture tests were going to be deleted in #5640, and they should be covered by this issue:

    {
        "description": "Date time example that includes a week-of for a locale with plural variants as well as one with non default WeekData",
        "input": {
            "locale": "en",
            "value": "2016-04-17T08:25:07.000+05:00",
            "options": {
                "components": {
                    "year": "numeric",
                    "week": "numeric-week-of-year",
                    "hour": "two-digit",
                    "minute": "two-digit",
                    "second": "two-digit",
                    "time_zone_name": "offset"
                }
            }
        },
        "output": {
            "values": {
                "en": "week 17 of 2016, 08:25:07 GMT+05:00",
                "en-AU": "week 16 of 2016, 08:25:07 GMT+05:00",
                "en-GB": "week 15 of 2016, 08:25:07 GMT+05:00",
                "fil": "linggo 17 ng 2016, 08:25:07 GMT+05:00",
                "en-ZA": "week 17 of 2016, 08:25:07 GMT+05:00"
            }
        }
    }

sffc avatar Oct 02 '24 20:10 sffc