Skip to content

Infer region in calendar resolution#8102

Open
robertbastian wants to merge 1 commit into
unicode-org:mainfrom
robertbastian:ir
Open

Infer region in calendar resolution#8102
robertbastian wants to merge 1 commit into
unicode-org:mainfrom
robertbastian:ir

Conversation

@robertbastian

@robertbastian robertbastian commented Jun 18, 2026

Copy link
Copy Markdown
Member

Fixes #8096

Changelog

icu_locale_core:

  • preferences types now implement serde and databake (feature-gated)

icu_calendar:

  • Add CalendarPreferences::resolve_calendar_2 and deprecate CalendarPreferences::resolve_calendar. The new version uses locale data to infer calendars from locales

@robertbastian robertbastian force-pushed the ir branch 2 times, most recently from 531324c to 7e756f2 Compare June 18, 2026 11:05
@robertbastian robertbastian requested review from a team and nciric as code owners June 18, 2026 11:05
@robertbastian robertbastian force-pushed the ir branch 2 times, most recently from 1de8e95 to da679d8 Compare June 18, 2026 11:20
@sffc

sffc commented Jun 18, 2026

Copy link
Copy Markdown
Member

Closely related discussion: #6326

@sffc

sffc commented Jun 18, 2026

Copy link
Copy Markdown
Member

The main question arising from that thread: should we put this new marker in icu_locale instead of icu_calendar? If the data key is purely a locale preference resolution, then maybe the locale crate is the right place for it.

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.

Datetime formatting for "fa" outputs gregorian rather than persian calendar as default

2 participants