Localize all app copy via Localizable.strings
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user