2017-02-15 1 views
0

내 앱을 iWatch에서 두 가지 언어로 현지화합니다. 대부분의 텍스트는 [복잡화] 및 [경고] 대화 상자를 제외하고는 현지화됩니다.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]) 
+0

무엇을 시도 했습니까? 어떤 Apple Localization 설명서를 보았습니까? –

+0

NSLocalizedString ("Page", comment : "") –

+0

텍스트를 'Localizable.strings' 파일에 추가 했습니까? – Sulthan

답변

0

에 대한

코드 나는 문제를 해결 :

는 localizable.string 파일을 선택하고 파일 관리자에서> 대상 회원은 시계 확장에 체크 표시를 넣어.

관련 문제