Try to modify Locale in previews, to see how it looks but it didn't work,
Code: import SwiftUI
struct SettingsView: View { var body: some View { VStack { Text("Current Locale : (Locale.current.identifier)") Text("Hoy es: (dateToString(Date()))") } } }
struct SettingsView_Previews: PreviewProvider { static var previews: some View { SettingsView() .environment(.locale, Locale(identifier: "es_AR"))
SettingsView() .environment(.locale, Locale(identifier: "fr")) }
}