Parametrized Shortcuts do not show up in Shortcuts app and search with localisation.

Hi!

When my device is set to English, both search and the Shortcuts up automatically show multiple shortcuts parametrised for each value of the AppEnum - which is what I expected. When my device is set to German, I get only the basic AppShortcut without the (optional) parameter.

I am using an AppEnum (see below) for the parametrised phrases and localise the phrases into German with an AppShortcuts String Catalog added to my project.

Everything else seems to work, I can use my AppShortcut in the Shortcuts app and invoke it via Siri in both English and German.

The Shortcuts app displays the values correctly using the localized strings.

Any ideas?

import AppIntents

class ApolloShortcuts: AppShortcutsProvider {
    static var appShortcuts: [AppShortcut] {
        AppShortcut(
            intent: GetIntent(),
            phrases: [
                "Get data from \(.applicationName)",
                "Get data from \(.applicationName) for \(\.$day)",
                "Get data from \(.applicationName) for the \(\.$day)"
            ],
            shortTitle: "Get Data",
            systemImageName: "wand.and.sparkles")
    }
}

enum ForecastDays: String, AppEnum {
    static var typeDisplayRepresentation: TypeDisplayRepresentation = "Day"
    
    static var caseDisplayRepresentations: [Self : DisplayRepresentation] = [
        .today: DisplayRepresentation(title: LocalizedStringResource("today", table: "Days")),
        .tomorrow: DisplayRepresentation(title: LocalizedStringResource("tomorrow", table: "Days")),
        .dayAfterTomorrow: DisplayRepresentation(title: LocalizedStringResource("dayAfterTomorrow", table: "Days"))
    ]
    
    case today
    case tomorrow
    case dayAfterTomorrow
    
    var displayName: String {
        String(localized: .init(rawValue), table: "Days")
    }
}

Now they did show up - not sure why 😂

Parametrized Shortcuts do not show up in Shortcuts app and search with localisation.
 
 
Q