我在iWatch中将我的应用程序本地化为两种语言。除了复杂和警报对话框之外,大多数文本都被本地化了。
有人能帮我吗?
警报代码
let restartAction = WKAlertAction(title: NSLocalizedString("OK", comment: ""), style: .destructive, handler: {
//some code here
})
let cancelAction = WKAlertAction(title: NSLocalizedString("Cancel", comment: ""), style: .cancel, handler: {})
presentAlert(withTitle: NSLocalizedString("Restart the page?", comment: ""), message: "", preferredStyle: .alert, actions: [restartAction, cancelAction])发布于 2017-02-17 20:01:39
我解决了这个问题:
选择localizable.string文件,在inspector>Target成员资格文件中,在手表扩展名上放置复选标记。
https://stackoverflow.com/questions/42240111
复制相似问题