Forked from swilliams/String localization extension.swift
Created
June 23, 2019 11:33
-
-
Save PaulEhrhardt/7329e939753484c3abef56fdb4b59972 to your computer and use it in GitHub Desktop.
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
extension String { | |
var localized: String { | |
return NSLocalizedString(self, comment: "") | |
} | |
} | |
// Which allows for: | |
"Hello world".localized |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment