Forked from swilliams/String localization extension.swift
Created
January 19, 2020 18:21
-
-
Save reddemonnet/a6478be05b78d1bb222c8f965870cb70 to your computer and use it in GitHub Desktop.
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 { | |
| 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