Created
March 1, 2020 14:49
-
-
Save LeThinh2511/c5ec01f21309d99963756fed4678cf2c to your computer and use it in GitHub Desktop.
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
import Foundation | |
extension String { | |
func localized() -> String { | |
return Bundle.main.localizedString(forKey: self, value: self, table: nil) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment