Created
July 22, 2021 04:43
-
-
Save tifoaudii/426b2cb2099f4fe9aed4c8c97b1ba8fa 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
struct Text: MutableLocalizable { | |
private var content: String = "Help" | |
static let languages: [Language] = [ | |
.indonesia, | |
.vietnam, | |
.thailand | |
] | |
mutating func translate(to language: Language) { | |
switch language { | |
case .indonesia: | |
content = "Tolong" | |
case .thailand: | |
content = "" | |
case .vietnam: | |
content = "" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment