vuetifyjs / vuetify

🐉 Vue Component Framework
https://vuetifyjs.com
MIT License
39.86k stars 6.97k forks source link

[Feature Request] CLDR json #6881

Closed mhf-ir closed 5 years ago

mhf-ir commented 5 years ago

Problem to solve

Add standard CLDR Data for i18n for many usecases

Proposed solution

For example if locale select fa-IR cldr json for get first-day-of-week see: https://github.com/unicode-cldr/cldr-core/blob/master/supplemental/weekData.json#L130 As saturday.

And other stuff.

You could just add build process to extract useful data from cldr repository. https://github.com/unicode-cldr/cldr-json

KaelWD commented 5 years ago

https://github.com/tc39/ecma402/issues/6

What is "other stuff"? Vague requests usually never get implemented.

mhf-ir commented 5 years ago

Here some of useful implementation: Multiple calendar step for many countries: Demo: https://www.time.ir/ Screenshot from 2019-03-31 21-43-48 In Iran we use three calendar. As CLDR data many countries has more than one calendars. https://github.com/unicode-cldr/cldr-core/blob/master/supplemental/calendarPreferenceData.json statistics: https://mhf-ir.github.io/i18nplease/

nekosaur commented 5 years ago

I am still not sure exactly what you are requesting with this issue.

I don't think it's very likely that we will implement some mechanism of pulling relevant data from CLDR directly. If something gets implemented in JS like the spec Kael linked to, that's another story. It's up to the developer to use appropriate values with the props we expose.

mhf-ir commented 5 years ago
  1. First of all calendar is the variable and depend per locale and each locale may have several calendar system that listed on CLDR data.
  2. Each locale need to support calendar usage order by for example in Iran we use persian gregorian islamic islamic-civil islamic-tbla order or in Japan they use gregorian japanese and other stuff.
  3. Depend of calendar and support fully i18n we need to know about more stuff on i18n data that stored and support in CLDR community so i think we better to use require ones. For exampel angular team also use this methology: https://github.com/angular/angular/blob/master/aio/content/guide/i18n.md

Many component need i18n process dont repeat your self and follow the standards like angular team. I donno about other components but datetime picker is always problem for us. many comonent like measurements or etc may be same follow

Thank you.

johnleider commented 5 years ago

This issue is being closed due to: