Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DateTimeFormat: add 'skeleton' support #189

Open
jungshik opened this issue Oct 18, 2017 · 2 comments
Open

DateTimeFormat: add 'skeleton' support #189

jungshik opened this issue Oct 18, 2017 · 2 comments
Labels
c: datetime Component: dates, times, timezones s: comment Status: more info is needed to move forward

Comments

@jungshik
Copy link

Spun off from #108 and #119 . options.skeleton was discussed in #108, but I don't find any new bug filed. So, I'm doing it. If it's already filed and worked on, I'm sorry and a pointer to the existing bug would be appreciated.

In Ecma 402 v1 back in early 2010's, there's a debate over verbose options ('month': short, 'month': 'numeric' , etc) vs LDML-style format specifiers (M, MM, MMM, MMMM). Verbose options were what's agreed upon.

Verbose options have some advantages, but they also have some cons; they're too verbose and sometimes hard to remember - devtools can help for sure. As shown in #119, it's hard to come up with succinct names for plethora of LDML format specifiers [1] (field and values. especially values for timezone display format ).

Quoting @rxaviers 's summary in #108,

options.skeleton - there's a big support for this option. It allows for "more advanced things", it is "almost ubiquitous for any internationalization platform".

[1] I'm not necessarily saying that we have to support every single one of them.

@caridy caridy added the s: help wanted Status: help wanted; needs proposal champion label Oct 24, 2017
@jungshik
Copy link
Author

jungshik commented Nov 22, 2017

The existence of https://github.com/caridy/intl-datetimeformat-pattern ( despite 'pattern' in its name, what it does is more for this issue than for #190 ) is a good argument for this feature in a sense.

@caridy
Copy link
Contributor

caridy commented Nov 22, 2017

Agreed! I have done some more research on how to fulfill this features in user-land, and I can share the results soon.

@littledan littledan added the Small Smaller change solvable in a Pull Request label Dec 13, 2017
@sffc sffc added c: datetime Component: dates, times, timezones and removed Small Smaller change solvable in a Pull Request labels Mar 19, 2019
@sffc sffc added s: comment Status: more info is needed to move forward and removed s: help wanted Status: help wanted; needs proposal champion labels Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: datetime Component: dates, times, timezones s: comment Status: more info is needed to move forward
Projects
None yet
Development

No branches or pull requests

4 participants