Feature: add locale format string to localeData or somewhere else
Open
enhancement
- Dominant language
- JavaScript
- Stars
- 48.7k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
I want to set a datefields default format based on the language preference which is set on start but the only way to get the format string for the correct locale is seen below. I would like to have a valid function or constant that I can use. The right place for that would be in localeData or in `locale()` IMO but I don't even undestand why there are two `locale` and `$locale`?
```js
dayjs().$locale().formats.L
```

Contributor guide
Assessment
This issue has not been assessed yet.