bdarcus / csln

Reimagining CSL
Mozilla Public License 2.0
12 stars 0 forks source link

Localized dates #107

Open bdarcus opened 12 months ago

bdarcus commented 12 months ago

Followup to #75; this isn't really solved ATM, since ordering of date parts is fixed.

See this example for Basque.

https://github.com/citation-style-language/styles/issues/6369

And here's the basque-specific style file:

https://github.com/citation-style-language/styles/pull/6370/files#diff-2e2042bed63a61edeb16d2cd5afe2324825c9d98af9b3c83397d980f772c5336R173

A good test case is whether we can support that elegantly.

So the question remains whether to use something like icu or chrono (see #26), and automatically localize these, or to add structure to locale dates, which would add some complexity, but simplify the dependencies.

I checked how Intl.DateTimeFormat handles basque, but it doesn't, which is not a good sign!