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