0
私のアプリをiWatchで2つの言語用にローカライズしました。ほとんどのテキストは、複雑化と警告ダイアログ以外ではローカライズされます。iWatchのNSLocalizedString
誰でもお手伝いできますか?アラート
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])
何を試しましたか?アップルのローカリゼーションに関するドキュメントを見ましたか? –
NSLocalizedString( "Page"、comment: "") –
テキストを 'Localizable.strings'ファイルに追加しましたか? – Sulthan