Created
December 1, 2017 10:45
-
-
Save GemmaDelOlmo/bce8d851f950ce859b89646cafa552ee to your computer and use it in GitHub Desktop.
String extension to easily localize without NSLocalizedString
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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