Add localization support, add drink icons in list, fix display error for out-of-stock favourites, fix low-res profile picture

This commit is contained in:
2025-04-23 22:35:46 +02:00
parent 5121d14b55
commit d6af1a7438
12 changed files with 674 additions and 71 deletions
+3 -3
View File
@@ -29,12 +29,12 @@ struct DrinkDetailView: View {
HStack {
VStack {
Text(String(format: "%img", drink.caffeine)).fontWeight(.bold)
Text("Caffeine").fontWeight(Font.Weight.thin)
Text(String(localized: "CAFFEINE")).fontWeight(Font.Weight.thin)
}
Divider()
VStack {
Text(String(format: "%.2f€", drink.GetPrice())).fontWeight(.bold)
Text("Price").fontWeight(Font.Weight.thin)
Text(String(localized: "PRICE")).fontWeight(Font.Weight.thin)
}
}
@@ -43,7 +43,7 @@ struct DrinkDetailView: View {
// Open the transaction sheet
shouldShowTransactionSheet = true
}) {
Text("Poison picked!")
Text(String(localized: "POISON_PICKED"))
}.tint(.green)
}