Created
February 22, 2020 10:05
-
-
Save foxicode/0cca4c4e689ab85291f18dd407d1b99c to your computer and use it in GitHub Desktop.
Localized string Swift 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
import Foundation | |
extension String { | |
var localized: String { | |
NSLocalizedString(self, comment: "") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment