App Intent title and other localized strings not showing correctly in Shortcuts app on macOS 15

I rarely use the Shortcuts app, so it took me a while to notice that my app's app intents all show incorrectly on macOS 15. On macOS 14 and 13, they used to show correctly, but now it seems that all localized strings show the key rather than the localized value.

@available(iOS 16.0, macOS 13.0, *)
struct MyAppIntent: AppIntent {
    static let title = LocalizedStringResource("key1", comment: "")
    static let description = IntentDescription(LocalizedStringResource("key2", comment: ""))
    ...
}

In Localizable.xcstrings file I have defined all the strings, for instance I have associated key1 with the value Title, but while the Shortcuts app used to display Title, it now displays key1.

Is this a known issue or did something change in macOS 15 that would require me to update something?

What happens if you add a new string catalog named AppShortcuts.xcstrings to your project?

—Ed Ford,  DTS Engineer

Do you mean to the main target or the app extension? And should I keep the existing Localizable.xcstrings or delete it?

App Shortcuts need to be in your main app target, so the localization file should go there along with it. As to your Localizable.xcstrings file, you can keep that for general purpose localization throughout your app. AppShortcuts.xcstrings will be just for your App Shortcuts, and the system will know that based on the file name.

—Ed Ford,  DTS Engineer

App Shortcuts need to be in your main app target

I have a non-SwiftUI app, so I guess this doesn't apply? I don't see how I could have App Shortcuts without a separate App Intents Extension.

Is this AppShortcuts.xcstrings officially documented? I couldn't find it anywhere.

App Intent title and other localized strings not showing correctly in Shortcuts app on macOS 15
 
 
Q