I make my app localized for two language in the iWatch. Most of the text get localized except in the Complication and the Alert dialog.
Could anyone help me?
Code for Alert
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])
I solve the problem:
select the localizable.string file and in the file inspector>Target Membership put check mark on Watch Extension.