Alex-PK / chrono-locale

Support localization for dates in chrono
Other
3 stars 6 forks source link

Consider using CLDR data #1

Open sanxiyn opened 5 years ago

sanxiyn commented 5 years ago

CLDR(Common Locale Data Repository) is where everybody is collecting locale data. Looking at locales directory, I think you should take data from https://github.com/unicode-cldr/cldr-dates-full. For example, here is data for fr.

Alex-PK commented 5 years ago

This is a great idea. I didn't know about CLDR.

I (quickly) went through the project's pages and it shouldn't be too hard to write a script to import the data from the json repo before publishing a new version.

There are a couple of things that will need to be kept in mind. I'll add them here as a recap:

sanxiyn commented 5 years ago

I think just replacing current data with CLDR data would be useful. Handling other locales can be done later.

If you do so, consider documenting CLDR version used (currently 34). unicode-cldr repositories provide Git tags for CLDR versions to do so.