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";
"course" = "Kurs";
"director" = "Studiengangsleiter";
"filledAuto" = "automatisch ausgefüllt";
"welcomeText" = "Bitte fülle die folgenden Felder aus:";

View File

@ -9,4 +9,4 @@
"course" = "Course";
"director" = "Director";
"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 {
static func getFirstOpening() -> LocalSettings {
let settings = LocalSettings();
settings.isFirstOpening = false;
return settings
}
static var previews: some View {
ContentView()
.preferredColorScheme(.dark)
.environmentObject(getFirstOpening())
.environment(\.managedObjectContext, PersistenceController.preview.container.viewContext)
}
static func getFirstOpening() -> LocalSettings {
let settings = LocalSettings();
settings.isFirstOpening = false;
return settings
}
}