Last active
May 7, 2020 17:55
-
-
Save mukyasa/f4694db42f9ebb15f761413ddb1db537 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
@propertyWrapper | |
struct Localizable { | |
var wrappedValue: String { | |
didSet { wrappedValue = NSLocalizedString(wrappedValue, comment: "") } | |
} | |
init(wrappedValue: String) { | |
self.wrappedValue = NSLocalizedString(wrappedValue, comment: "") | |
} | |
} | |
enum Strings { | |
@Localizable static var featureOneTitle = "featureOneTitle" | |
@Localizable static var featureTwoTitle = "featureTwoTitle" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment