Small bug fixes

This commit is contained in:
Vicnet
2023-11-11 15:07:26 +01:00
parent ccf2612ad4
commit 17678dea5f
2 changed files with 13 additions and 7 deletions

View File

@@ -1046,19 +1046,25 @@
"de" : { "de" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "Rezept von einer Website importieren" "value" : "Rezept von einer Website importieren (Experimentell)"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Import recipe from a website (Experimental)"
} }
}, },
"es" : { "es" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "Importar receta desde un sitio web" "value" : "Importar receta desde un sitio web (Experimental)"
} }
}, },
"fr" : { "fr" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "Importer une recette depuis un site web" "value" : "Importer une recette depuis un site web (Expérimental)"
} }
} }
} }

View File

@@ -65,16 +65,16 @@ struct RecipeEditView: View {
Form { Form {
if viewModel.showImportSection { if viewModel.showImportSection {
Section { Section {
TextField("URL (e.g. example.com/recipe)", text: $viewModel.importURL) TextField(LocalizedStringKey("URL (e.g. example.com/recipe)"), text: $viewModel.importURL)
Button { Button {
viewModel.importRecipe() viewModel.importRecipe()
} label: { } label: {
Text("Import") Text(LocalizedStringKey("Import"))
} }
} header: { } header: {
Text("Import Recipe") Text(LocalizedStringKey("Import Recipe"))
} footer: { } footer: {
Text("Paste the url of a recipe you would like to import in the above, and we will try to fill in the fields for you. This feature does not work with every website. If your favourite website is not supported, feel free to reach out for help. You can find the contact details in the app settings.") Text(LocalizedStringKey("Paste the url of a recipe you would like to import in the above, and we will try to fill in the fields for you. This feature does not work with every website. If your favourite website is not supported, feel free to reach out for help. You can find the contact details in the app settings."))
} }
} else { } else {