Skip to content

Instantly share code, notes, and snippets.

@GemmaDelOlmo
Created December 1, 2017 10:45
Show Gist options
  • Select an option

  • Save GemmaDelOlmo/bce8d851f950ce859b89646cafa552ee to your computer and use it in GitHub Desktop.

Select an option

Save GemmaDelOlmo/bce8d851f950ce859b89646cafa552ee to your computer and use it in GitHub Desktop.
String extension to easily localize without NSLocalizedString
extension String {
static func localized(_ identifier: String) -> String {
return NSLocalizedString(identifier, comment: "")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment