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

[resources] Use first of preferred locales instead of a current on iOS #4507

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

terrakok
Copy link
Collaborator

There is a bug on iOS:

NSLocale.currentLocale() -> 'en-US'
NSLocale.preferredLanguages().first().let { NSLocale(it as String) } -> 'ru'

An equal result was expected!
the first method was used in a non-compose code and another one in the compose code.
The PR fixes behavior in a non-compose environment.

There is a bug on iOS:
NSLocale.currentLocale() -> 'en-US'
NSLocale.preferredLanguages().first().let { NSLocale(it as String) } -> 'ru'

An equal result was expected!
@terrakok terrakok merged commit ad9c898 into master Mar 18, 2024
@terrakok terrakok deleted the k.tskh/ios-locale-fix branch March 18, 2024 09:48
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.

None yet

2 participants