Swift 3: NSAttributedString – localization/translation
- 11.01.2018 Softwareentwicklung
If you want to translate an attributed string with XCode, it is not easy. Normal strings can be translated with NSLocalizedString(key: comment). However, there is a problem with attributed strings. The attributes must be placed in the correct place in the string and this can vary greatly depending on the language. One approach I found ...