Localization fix

This commit is contained in:
Arkadiusz Fal 2022-11-19 15:45:27 +01:00
parent 45705e0b29
commit da5e582b59

View File

@ -124,9 +124,10 @@ struct InstancesSettings: View {
Button("Remove Location") { Button("Remove Location") {
settings.presentAlert(Alert( settings.presentAlert(Alert(
title: Text( title: Text(String(
"Are you sure you want to remove \(selectedInstance!.longDescription) location?" format: "Are you sure you want to remove %@ location?",
), selectedInstance?.longDescription ?? ""
)),
message: Text("This cannot be reverted"), message: Text("This cannot be reverted"),
primaryButton: .destructive(Text("Remove")) { primaryButton: .destructive(Text("Remove")) {
if accounts.current?.instance == selectedInstance { if accounts.current?.instance == selectedInstance {