App shows different language than device is set to

This may be a newbie question, but the following seems very strange to me.

My devices (iPhone, iPad) use Dutch ("nl") as language (Configured with Settings / General / Language & Region / iPhone Language). And similarly Netherlands ("NL") as region.

But if I run the following program:

import SwiftUI

struct ContentView: View {
    var body: some View {
        Text(Locale.current.description)
        Text(Locale.current.languageCode!)
    }
}

I get the following output:

en_NL (current)

en

I checked the run settings in Xcode. App Language is set to System Language, and App Region is set to System Region.

It seems to me that I should see

nl_NL (current)

nl

Am I right? Do I misunderstand Locale? Am I missing something else? Thanks!

Answered by DTS Engineer in 714825022

I don't see the app in the list. Should it be there?

Only if your app supports multiple localisation.

And that’s the key issue here. Your app’s localisation controls the language in which it runs. For the details, see QA1828 How iOS Determines the Language For Your App.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Could you check the settings for your app ? : in iPhone settings, search for your app in the list and see what is the preferred language.

It seems to me its time for Feedback Assistant if your settings in your Phone or simulators are correct

Do you mean the settings I mentioned? Or are there others I should look into?

Accepted Answer

I don't see the app in the list. Should it be there?

Only if your app supports multiple localisation.

And that’s the key issue here. Your app’s localisation controls the language in which it runs. For the details, see QA1828 How iOS Determines the Language For Your App.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

App shows different language than device is set to
 
 
Q