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!
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"