Localization doesn't work in watchOS widget configuration intent

Hi,

I have a problem with watchOS widget configuration intents. It turns out that watchOS is unable to load text for localization keys.

This is how I set configuration parameter in WidgetConfigurationIntent:

@Parameter(
    title: LocalizedStringResource(
        "watchWidgetConfig.showSymbols",
        defaultValue: "Symbole",
        table: "WidgetLocalizable",
        bundle: widgetBundle
    ),
    default: true
)
var showSymbols: Bool

Unfortunately, on a device always the defaultValue is used.

I tried everything and nothing works. What's weird, it correctly works on watchOS simulator and if you configure widgets in iOS "Watch" app. On real Apple Watch, the "defaultValue" is displayed.

I'm not sure if it's important but both: the Swift file with WidgetConfigurationIntent and WidgetLocalizable.xcstring are included in two targets: Watch Widget Extension and Watch App.

I tried so far:

  • All variants of LocalizableStringResource init. With/without "table", with/without "bundle".
  • Previously I had texts in Localizable.strings, I migrated it to WidgetLocalizable.xcstrings and it didn't work either.
  • Setting only one target for WidgetLocalizable.xcstring and WidgetConfigurationIntent.
  • I checked inside xcarchive to see if WidgetLocalizable.xcstring is copied correctly.

Seems like watchOS bug, but I would be happy to know if someone figured out any workaround.

Xcode: Version 26.4 (17E192)
iOS 26.4.1
watchOS 26.4

I already created a ticket: FB22509406

My test project doesn't seem to present the issue on my Apple Watch + watchOS 26.4...

Do you have a minimal project, with detailed steps, to reproduce the issue? If you can provide, I'd be interested in taking a look.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

My real project is based on xcodegen, so I was able to recreate a very similar structure and dependencies to reproduce my case. However, I don't have Apple Watch, so I can't tell if it is reproducible in this sample project. On simulator it always work well.

Well, in this case, where you aren't sure the issue can be reproduced with your project, I'd suggest that you contact DTS directly by submitting your question here (Apple developer account log-in required), and then share your DTS request ID here for me to pick up. From there, I can probably provide my test project so you can check if you do something differently.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

Localization doesn't work in watchOS widget configuration intent
 
 
Q