Currently the language of the application is English, the device language is Vietnamese, I have set the locale is "en_US" but the title of the time still shows Vietnamese, anyone know how to solve it? here is the result (https://i.stack.imgur.com/0Po0q.png)
i tried this way, but not work:
var identifier = "vi_VN"
let languageCode = UserDefaults.standard.string(forKey: "Internationalization")
if languageCode != "vi" {
identifier = "en_US"
}
let locale = Locale.init(identifier: identifier)
datePicker.locale = locale