Skip to content

Correct locale extraction to exclude delims #252

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 1 commit into from
Jun 28, 2022

Conversation

DoumanAsh
Copy link
Contributor

@DoumanAsh DoumanAsh commented Jun 24, 2022

Subj
This PR corrects extraction of locale information
Originally code would include delimiter inside country code, encoding or modifier.
This PR intentionally excludes these delimiters now, making flutter-pi to initialize flutter locale information without them correctly
I also added printing of locale during startup, it would be helpful to identify it for user instead of debugging :)

P.s. This only affects applications that rely on system locale information (e.g. easy_localization which uses system locale as default)

@ardera ardera merged commit bb97f56 into ardera:master Jun 28, 2022
@ardera
Copy link
Owner

ardera commented Jun 28, 2022

Thanks! I think logging the locale information on startup is a good idea.

@DoumanAsh DoumanAsh deleted the fix_flutter_locale branch June 28, 2022 09:57
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.

2 participants