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

Add full preference-order locale support to Apple targets #24

Merged
merged 1 commit into from
Jun 17, 2023

Conversation

complexspaces
Copy link
Collaborator

@complexspaces complexspaces commented Jun 17, 2023

This PR follows up #22 by adding proper locale list iteration to the macOS and iOS implementation. Now if a user has multiple preferred languages on these OSes applications will be able to observe them as-intended.

For example, here is macOS 13 configured with the following languages:
image

    Finished test [unoptimized + debuginfo] target(s) in 0.01s
     Running unittests src/lib.rs (target/debug/deps/sys_locale-4bef307f8598d700)

running 1 test
en-US
es-US
ja-US
test tests::can_obtain_locale ... ok

Relates to #14

@complexspaces complexspaces merged commit 0e6f5f1 into main Jun 17, 2023
40 checks passed
@complexspaces complexspaces deleted the apple-fallback-langs branch June 17, 2023 19:42
@complexspaces complexspaces mentioned this pull request Jun 17, 2023
5 tasks
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

1 participant