-
Notifications
You must be signed in to change notification settings - Fork 214
Add Iran's Hijri implementation #6474
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
base: main
Are you sure you want to change the base?
Conversation
7f31be8
to
5e76726
Compare
031dac8
to
f710466
Compare
Ooh, thank you for doing this work! I'll try and have a look when I have time. We may want to keep it out of the default anycalendar set for now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall the implementation looks good.
Some general questions for @robertbastian and @sffc (background: this is a data-driven calendar that falls back to tabular islamic)
- In general we seem to be fine with having non-Any calendar implementations to this crate. I assume we're okay with adding this one? Naming thoughts?
- We should figure out criteria by which this gets added to Any. We'll need a BCP47 tag probably. And some agreement about shipping the data by default.
- Code structure wise: should this data be living in calendrical_calculations?
- Code structure wise: should we clean up the hijri module? It's getting big.
I'm going to suggest we hold off on merging this until 2.0, though I'm happy to have it merged as a private implementation til then.
Agreed that we should start by landing this in the same way as JapaneseExtended and HijriSimulated (available in icu_calendar but not included in DateTimeFormatter, but potentially formattable with FixedCalendarDateTimeFormatter). Also @hsivonen. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is overall a good idea. We should probably wait past 2.0 to merge this, and we should figure out what is involved in getting a BCP47 id for this.
components/locale_core/src/preferences/extensions/unicode/keywords/calendar.rs
Outdated
Show resolved
Hide resolved
As #6474 (comment) --------- Co-authored-by: Manish Goregaokar <[email protected]>
8d781b8
to
ff7d362
Compare
|
This tries to implement what historically till present observed in Iran with Islamic calendar. This uses the data gathered in https://github.com/roozbehp/qamari
Related to #6336