Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DIA-3942] Add Tagalog language, [DIA-4389] Add Indonesian, Hebrew, Macedonian, Malay, Korean languages #578

Merged
merged 2 commits into from
Aug 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions ConsentViewController/Classes/SPMessageLanguage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,17 @@ import Foundation
case Gaelic
case German
case Greek
case Hebrew
case Hungarian
case Icelandic
case Indonesian
case Italian
case Japanese
case Korean
case Latvian
case Lithuanian
case Macedonian
case Malay
case Norwegian
case Polish
case Portuguese
Expand All @@ -41,6 +46,7 @@ import Foundation
case Slovenian
case Spanish
case Swedish
case Tagalog
case Turkish

public typealias RawValue = String
Expand Down Expand Up @@ -78,18 +84,28 @@ import Foundation
return "DE"
case .Greek:
return "EL"
case .Hebrew:
return "HE"
case .Hungarian:
return "HU"
case .Icelandic:
return "IS"
case .Indonesian:
return "ID"
case .Italian:
return "IT"
case .Japanese:
return "JA"
case .Korean:
return "KO"
case .Latvian:
return "LV"
case .Lithuanian:
return "LT"
case .Macedonian:
return "MK"
case .Malay:
return "MS"
case .Norwegian:
return "NO"
case .Polish:
Expand All @@ -112,6 +128,8 @@ import Foundation
return "ES"
case .Swedish:
return "SV"
case .Tagalog:
return "TL"
case .Turkish:
return "TR"
}
Expand Down Expand Up @@ -149,18 +167,28 @@ import Foundation
self = .German
case "EL":
self = .Greek
case "HE":
self = .Hebrew
case "HU":
self = .Hungarian
case "IS":
self = .Icelandic
case "ID":
self = .Indonesian
case "IT":
self = .Italian
case "JA":
self = .Japanese
case "KO":
self = .Korean
case "LV":
self = .Latvian
case "LT":
self = .Lithuanian
case "MK":
self = .Macedonian
case "MS":
self = .Malay
case "NO":
self = .Norwegian
case "PL":
Expand All @@ -183,6 +211,8 @@ import Foundation
self = .Spanish
case "SV":
self = .Swedish
case "TL":
self = .Tagalog
case "TR":
self = .Turkish

Expand Down