Locale.preferredLanguages does not return in order

I am using Locale.preferredLanguages to get the users language preferences. The plan was to use the first here as this should be the first in the users list. The concern is sometimes this list does not return in order so I can never confirm if the user is using a specific language. Below is an image of my preferred languages and what is then being return on the right.


Does anyone know why this happens? My though it is has something to do with Base Localization which is turned on and set as English.


https://i.stack.imgur.com/aHINl.png

Replies

What languages is your app localised to? That is, for the main bundle, what does the

localizations
property return?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"