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:
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
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:
Relates to #14