Last active
October 15, 2018 08:10
-
-
Save damijanracel/d0838ef6a79cf0529f5de9f8e2a11318 to your computer and use it in GitHub Desktop.
Localization key enum
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
enum LocalizationKey: String { | |
case hello = "hello" | |
case bye = "bye" | |
case progress = "progress" | |
var string: String { | |
return rawValue.localized() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment