Skip to content

Commit

Permalink
Update SPMessageLanguage
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevazhnovu committed Aug 21, 2024
1 parent 53f5c47 commit 3b3299c
Showing 1 changed file with 30 additions and 5 deletions.
35 changes: 30 additions & 5 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,8 +46,8 @@ import Foundation
case Slovenian
case Spanish
case Swedish
case Turkish
case Tagalog
case Turkish

public typealias RawValue = String

Expand Down Expand Up @@ -79,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 @@ -113,10 +128,10 @@ import Foundation
return "ES"
case .Swedish:
return "SV"
case .Turkish:
return "TR"
case .Tagalog:
return "TL"
case .Turkish:
return "TR"
}
}
// swiftlint:disable:next cyclomatic_complexity function_body_length
Expand Down Expand Up @@ -152,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 @@ -186,10 +211,10 @@ import Foundation
self = .Spanish
case "SV":
self = .Swedish
case "TR":
self = .Turkish
case "TL":
self = .Tagalog
case "TR":
self = .Turkish

default:
return nil
Expand Down

0 comments on commit 3b3299c

Please sign in to comment.