Skip to content

Update era codes #6405

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

Merged
merged 4 commits into from
Apr 10, 2025
Merged

Update era codes #6405

merged 4 commits into from
Apr 10, 2025

Conversation

robertbastian
Copy link
Member

@robertbastian robertbastian commented Apr 2, 2025

@robertbastian robertbastian marked this pull request as ready for review April 3, 2025 13:32
Manishearth
Manishearth previously approved these changes Apr 3, 2025
Copy link
Member

@Manishearth Manishearth left a comment

Choose a reason for hiding this comment

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

LG with the understanding that today's meeting may change some of these. But happy to land this and make smaller incremental changes as needed.

We'll probably end up renaming saka to shaka.

Manishearth
Manishearth previously approved these changes Apr 4, 2025
Copy link
Member

@sffc sffc left a comment

Choose a reason for hiding this comment

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

The latest proposal already differs from what is in this PR, and I'm not currently of the opinion that we should be on the vanguard here before CLDR adopts them. Nothing has been approved by anyone yet. I think keeping the test is more valuable at this instant in time. This might be different in 5-10 days from now but I don't know at this moment in time

@sffc
Copy link
Member

sffc commented Apr 4, 2025

LG with the understanding that today's meeting may change some of these. But happy to land this and make smaller incremental changes as needed.

We'll probably end up renaming saka to shaka.

I'm not convinced that future changes will be smaller and incremental. We're already likely backtracking on some of my proposed changes to Minguo and Coptic.

@robertbastian
Copy link
Member Author

While what's currently on main aligns with what's currently in CLDR (#6248, #6252), it is sufficiently in flux that I don't want to release the current code. If we release 2.0 with calendars that return eras like buddhist and gregory-inverse, islamic-tbla, then that behaviour will be out there, and it will be a bigger semver hazard to do the CLDR alignment in the future.

What's currently proposed in CLDR, and what this PR implements, is a much smaller diff to the 1.5 behaviour.

@robertbastian robertbastian requested a review from sffc April 10, 2025 07:55
@@ -504,25 +504,26 @@ fn test_calendar_eras() {
let in_era = in_era_iso.to_calendar(cal);
let not_in_era = not_in_era_iso.to_calendar(cal);

// TODO: reenable with CLDR-48
Copy link
Member

Choose a reason for hiding this comment

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

issue?

Copy link
Member Author

Choose a reason for hiding this comment

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

filed #6437

@robertbastian robertbastian merged commit 59994aa into unicode-org:main Apr 10, 2025
28 checks passed
@robertbastian robertbastian deleted the eras branch April 10, 2025 08:06
robertbastian added a commit that referenced this pull request Apr 10, 2025
robertbastian added a commit that referenced this pull request Apr 14, 2025
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.

3 participants