Siri: shortcut names match app (Unleaded/Premium/Diesel); phrases cover UK speech variants

This commit is contained in:
FuelBoard Contributor
2026-08-14 13:23:52 +01:00
parent e55078c5e2
commit a3b6f37843
+9 -7
View File
@@ -17,9 +17,10 @@ import SwiftUI
/// - Phrases stay literal/boring for App Store review; `\.applicationName` /// - Phrases stay literal/boring for App Store review; `\.applicationName`
/// appears in EVERY phrase (iOS 26 metadata-processor requirement /// appears in EVERY phrase (iOS 26 metadata-processor requirement
/// without it the metadata exports ZERO utterances). /// without it the metadata exports ZERO utterances).
/// - Fuel case labels use UK speech ("Petrol", "Super Unleaded") so Siri's /// - Shortcut names match the app (Unleaded / Premium / Diesel); the
/// phrase matching maps how people actually ask; the app UI's own /// registered phrases ALSO carry the UK speech variants ("petrol",
/// FuelType.displayName ("Unleaded") is unaffected. /// "super unleaded") so Siri matches how people actually ask. The app UI's
/// FuelType.displayName is untouched.
// MARK: - Fuel parameter // MARK: - Fuel parameter
@@ -27,8 +28,8 @@ extension FuelType: AppEnum {
static var typeDisplayRepresentation: TypeDisplayRepresentation = "Fuel" static var typeDisplayRepresentation: TypeDisplayRepresentation = "Fuel"
static var caseDisplayRepresentations: [FuelType: DisplayRepresentation] = [ static var caseDisplayRepresentations: [FuelType: DisplayRepresentation] = [
.e10: "Petrol", .e10: "Unleaded",
.e5: "Super Unleaded", .e5: "Premium",
.diesel: "Diesel", .diesel: "Diesel",
] ]
} }
@@ -199,8 +200,9 @@ struct FuelBoardShortcuts: AppShortcutsProvider {
"Ask \(.applicationName) for the cheapest unleaded near me", "Ask \(.applicationName) for the cheapest unleaded near me",
"Ask \(.applicationName) for the cheapest petrol near me", "Ask \(.applicationName) for the cheapest petrol near me",
"Find the cheapest petrol near me \(.applicationName)", "Find the cheapest petrol near me \(.applicationName)",
"Find the cheapest unleaded near me \(.applicationName)",
], ],
shortTitle: "Cheapest Petrol", shortTitle: "Cheapest Unleaded",
systemImageName: "fuelpump" systemImageName: "fuelpump"
) )
@@ -211,7 +213,7 @@ struct FuelBoardShortcuts: AppShortcutsProvider {
"Ask \(.applicationName) for the cheapest super unleaded near me", "Ask \(.applicationName) for the cheapest super unleaded near me",
"Find the cheapest super unleaded near me \(.applicationName)", "Find the cheapest super unleaded near me \(.applicationName)",
], ],
shortTitle: "Cheapest Super Unleaded", shortTitle: "Cheapest Premium",
systemImageName: "fuelpump" systemImageName: "fuelpump"
) )