Skip to content

Conversation

Manishearth
Copy link
Member

Fixes #7038

I didn't add things to locale_core but we could do that there too.

@Manishearth Manishearth requested a review from sffc as a code owner October 14, 2025 00:20
/// The kind of an [`HijriSimulated`], Mecca calendar
///
/// This corresponds to the `"islamic-rgsa"` [CLDR calendar](https://unicode.org/reports/tr35/#UnicodeCalendarIdentifier).
HijriSimulatedMecca,
Copy link
Member

@sffc sffc Oct 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Observation: we have islamic-rgsa in AnyCalendarKind? (I know we discuss this at great length but I'm still surprised to see it here)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it's not used by Temporal but it's there. Probably wouldn't have it if we didn't.

I recently tweaked temporal_rs so that it will discard rgsa inputs.

@Manishearth Manishearth requested a review from sffc October 14, 2025 06:25
@Manishearth Manishearth merged commit 7cd946f into unicode-org:main Oct 14, 2025
31 checks passed
@Manishearth Manishearth deleted the cal-cldr-ident branch October 14, 2025 10:21
/// This calendar is identical to the [`Gregorian`](super::Gregorian) calendar,
/// except that it uses a single `default` era instead of `bce` and `ce`.
///
/// This corresponds to the `"iso8601"` [CLDR calendar](https://unicode.org/reports/tr35/#UnicodeCalendarIdentifier).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: I'm not sure about this. while we currently resolve the CalendarAlgorithm::Iso8601 to AnyCalendar::Iso, I don't think that's quite the same on the CLDR level. -u-ca-iso8601 is meant to be a Gregorian format that uses YMD ordering in the skeletons.

Copy link
Member Author

@Manishearth Manishearth Oct 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I was unsure of that part. Can remove this snippet.

Temporal considers this to mean a generally useful ISO calendar.

pub enum AnyCalendarKind {
/// The kind of a [`Buddhist`] calendar
///
/// This corresponds to the `"buddhist"` [CLDR calendar](https://unicode.org/reports/tr35/#UnicodeCalendarIdentifier).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these should link to the CalendarAlgorithm variant, which already links to the LDML

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://unicode-org.github.io/icu4x/rustdoc/icu/calendar/preferences/enum.CalendarAlgorithm.html

Yeah but the exact correspondence isn't documented there either.

Happy to add docs there too but I don't actually think we should cross reference here: I've been annoyed at the number of clicks it takes to figure this out each time and it's fine to be repetitive in docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document the CLDR identifiers of calendars

3 participants