AppIntent Title Localization

Does anyone know how to localize the title of the shortcut? I tried to create a localizable file and then do a french translation. However, when I reference it as my shortcut title and change my simulator's language to the translated language (in this case french) it still displays the title in the english translation.

for example:

my Localizable.strings file says in english: "shortcutTitle" = "Hello!"; in french: "shortcutTitle" = "Bonjour!";

and then my AppIntent says:

static var title: LocalizedStringResource{return LocalizedStringResource("shortcutTitle")}

AppIntent title localization worked for me when I tried on iPadOS 16.1 (20B79) with the following way:

  1. Set the title directly:
    static var title: LocalizedStringResource = "AppIntents.UpdateText.Title"

  2. Add the localized string in Localizable.string:
    "AppIntents.UpdateText.Title" = "Update text";

I haven't confirmed with the latest system version though. If you don't mind, please give it a try and share if that still works.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

AppIntent Title Localization
 
 
Q