gpt4 book ai didi

localization - Apple Watch 应用程序未本地化

转载 作者:行者123 更新时间:2023-12-04 01:57:12 25 4
gpt4 key购买 nike

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

这是 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";

这是 watch 截图:

apple watch screenshot

最佳答案

我发现必须在本地化字符串设置“Target Membership”下选择 watch 目标和 watch extension 目标。我不知道为什么,因为据说如果有影响 UI 的代码而不仅仅是 Storyboard ,则扩展只需要本地化。但这样做会本地化 watch UI。

interface.storyboard strings

关于localization - Apple Watch 应用程序未本地化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49764591/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com