Localize all app copy via Localizable.strings

This commit is contained in:
FuelBoard Contributor
2026-08-13 10:57:36 +01:00
parent bbe43a6149
commit 0d91c82bb1
4 changed files with 144 additions and 17 deletions
+1 -1
View File
@@ -420,7 +420,7 @@ struct StationRow: View {
private var deltaText: String? {
guard let price = station.prices[fuel], let baselinePrice else { return nil }
let delta = price - baselinePrice
if abs(delta) <= 0.05 { return "best" }
if abs(delta) <= 0.05 { return NSLocalizedString("best", comment: "") }
// Signed: +X.Xp pricier than baseline, -X.Xp cheaper (Closest mode);
// in Cheapest mode the baseline is the cheapest so deltas are 0.
return String(format: "%+.1fp", delta)