An API to expose information of locale, such as week data ( first day of a week, weekend start, weekend end), hour cycle, measurement system, commonly used calendar, etc.
I have a following use case:
When I have locale set to en-gb and enter 23/01/2023 I need it to be able to get correct javascript date but I don't see a way to get it using Intl. Maybe this can be something this proposal can cover?
// Kinda want something like DateTimeFromLocale
const dateFromEnGB = new Intl.DateTimeFromLocale('en-gb').format('23/01/2023').toFormat({
day: '2-digit',
month: '2-digit',
year: 'numeric',
});
I have a following use case: When I have locale set to
en-gb
and enter23/01/2023
I need it to be able to get correct javascript date but I don't see a way to get it using Intl. Maybe this can be something this proposal can cover?