Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save PaulEhrhardt/7329e939753484c3abef56fdb4b59972 to your computer and use it in GitHub Desktop.
Save PaulEhrhardt/7329e939753484c3abef56fdb4b59972 to your computer and use it in GitHub Desktop.
extension String {
var localized: String {
return NSLocalizedString(self, comment: "")
}
}
// Which allows for:
"Hello world".localized
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment