NSLocalizedString with swift variable

后端 未结 6 1001
清歌不尽
清歌不尽 2020-11-29 02:50

I\'m trying to localize my app using NSLocalizedString. When i import the XLIFF file, most works like a charm but something do not and some string is not localized. I have n

6条回答
  •  长情又很酷
    2020-11-29 03:02

    In Session #412 of the WWDC2014 "Localizing with Xcode 6" the proper way to this in Swift is the following:

    String.localizedStringWithFormat(
        NSLocalizedString(" - %d Notifica",
        comment: "sottotitolo prescrizione per le notifiche al singolare"),
        count)
    

提交回复
热议问题