Skip to content
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

fix :Locale bug with ShadDatePicker.range #270

Closed
wants to merge 2 commits into from

Conversation

patricknicolosi
Copy link

@patricknicolosi patricknicolosi commented Jan 26, 2025

closes #268


final start = intl.DateFormat.yMMMd(locale).format(range.start!);
final start =
intl.DateFormat.yMMMd(locale.languageCode).format(range.start!);
Copy link
Owner

@nank1ro nank1ro Jan 27, 2025

Choose a reason for hiding this comment

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

replace locale.languageCode() to locale.toLanguageTag()

if (range.end != null) {
final end = intl.DateFormat.yMMMd(locale).format(range.end!);
final end = intl.DateFormat.yMMMd(locale.languageCode).format(range.end!);
Copy link
Owner

@nank1ro nank1ro Jan 27, 2025

Choose a reason for hiding this comment

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

replace locale.languageCode() to locale.toLanguageTag()

@nank1ro
Copy link
Owner

nank1ro commented Jan 27, 2025

I did it myself in another PR so I can create a new release cause this is very critical

@nank1ro nank1ro closed this Jan 27, 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.

Locale bug with ShadDatePicker.range
2 participants