Apple Watch 应用程序未本地化

Nel*_*pes 3 localization apple-watch

我已经为德语、法语、西班牙语和简体中文设置了 interface.storyboard 字符串。我下载了 iOS 应用程序并将其加载到手表中。例如,我然后将手表语言设置为德语。但是用户界面仍然是英文的。

这是 interface.storyboard 字符串:

    /* Class = "WKInterfaceButton"; title = "Start Timer"; ObjectID = "1oP-Ed-sIA"; */
"1oP-Ed-sIA.title" = "Timer starten";

/* Class = "WKInterfaceButton"; title = "0:30"; ObjectID = "Kti-O4-Ky6"; */
"Kti-O4-Ky6.title" = "0:30";

/* Class = "WKInterfaceDate"; format = " h:mm:ss a"; ObjectID = "P50-YW-9sa"; */
"P50-YW-9sa.format" = " h:mm:ss a";

/* Class = "WKInterfaceButton"; title = "0:15"; ObjectID = "QLq-vX-zHG"; */
"QLq-vX-zHG.title" = "0:15";

/* Class = "WKInterfaceButton"; title = "Do Not Disturb"; ObjectID = "Zku-u8-rhy"; */
"Zku-u8-rhy.title" = "Bitte nicht stören";

/* Class = "WKInterfaceButton"; title = "Stop Timer"; ObjectID = "afW-nF-dFL"; */
"afW-nF-dFL.title" = "Stoppuhr";

/* Class = "WKInterfaceButton"; title = "0:60"; ObjectID = "tDV-Bi-XDn"; */
"tDV-Bi-XDn.title" = "0:60";
Run Code Online (Sandbox Code Playgroud)

以下是手表截图:

苹果手表截图

Nel*_*pes 5

我发现必须在本地化字符串设置“Target Membership”下选择监视目标和监视扩展目标。我不知道为什么,因为如果有影响 UI 的代码,而不仅仅是故事板,那么据说扩展只需要本地化。但是这样做确实本地化了手表 UI。

interface.storyboard 字符串