i18n and reformatting

This commit is contained in:
Patrick Müller 2020-12-23 17:26:36 +01:00 committed by Patrick Müller
parent 1d209aae42
commit 5bd5743d8b
3 changed files with 9 additions and 8 deletions

View File

@ -8,3 +8,5 @@
"name" = "Name"; "name" = "Name";
"course" = "Kurs"; "course" = "Kurs";
"director" = "Studiengangsleiter"; "director" = "Studiengangsleiter";
"filledAuto" = "automatisch ausgefüllt";
"welcomeText" = "Bitte fülle die folgenden Felder aus:";

View File

@ -9,4 +9,4 @@
"course" = "Course"; "course" = "Course";
"director" = "Director"; "director" = "Director";
"filledAuto" = "filled automatically"; "filledAuto" = "filled automatically";
"welcomeText" = "Please enter your data in the following fields."; "welcomeText" = "Please enter your data in the following fields:";

View File

@ -44,17 +44,16 @@ extension ContentView{
} }
struct ContentView_Previews: PreviewProvider { struct ContentView_Previews: PreviewProvider {
static func getFirstOpening() -> LocalSettings {
let settings = LocalSettings();
settings.isFirstOpening = false;
return settings
}
static var previews: some View { static var previews: some View {
ContentView() ContentView()
.preferredColorScheme(.dark) .preferredColorScheme(.dark)
.environmentObject(getFirstOpening()) .environmentObject(getFirstOpening())
.environment(\.managedObjectContext, PersistenceController.preview.container.viewContext) .environment(\.managedObjectContext, PersistenceController.preview.container.viewContext)
} }
static func getFirstOpening() -> LocalSettings {
let settings = LocalSettings();
settings.isFirstOpening = false;
return settings
}
} }