Created
August 11, 2017 18:20
-
-
Save brunogama/793177b9b156a32e566454a12836a97b to your computer and use it in GitHub Desktop.
Localized string extension
This file contains 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
public extension String | |
{ | |
public var localized: String { | |
return NSLocalizedString(self.lowercased(), tableName: nil, bundle: .main, value: "", comment: "") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment