Skip to content

Instantly share code, notes, and snippets.

@amonshiz
Created November 21, 2016 13:17
Show Gist options
  • Save amonshiz/1e4a01f650f99e50a39c061d775bad4a to your computer and use it in GitHub Desktop.
Save amonshiz/1e4a01f650f99e50a39c061d775bad4a to your computer and use it in GitHub Desktop.
String extension to simplify localization
extension String {
var localized: String {
get {
return NSLocalizedString(self, comment: "")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment