Showing
1 changed file
with
10 additions
and
0 deletions
... | @@ -102,6 +102,14 @@ public class swiftApi { | ... | @@ -102,6 +102,14 @@ public class swiftApi { |
102 | UserDefaults.standard.set(newUserTag, forKey: "merchantIdUD") | 102 | UserDefaults.standard.set(newUserTag, forKey: "merchantIdUD") |
103 | } | 103 | } |
104 | 104 | ||
105 | + public func getLanguage() -> String { | ||
106 | + return UserDefaults.standard.string(forKey: "languageUD") ?? "" | ||
107 | + } | ||
108 | + | ||
109 | + public func setLanguage(_ newLang: String) -> Void { | ||
110 | + UserDefaults.standard.set(newLang, forKey: "languageUD") | ||
111 | + } | ||
112 | + | ||
105 | public func getStepsWebview() -> Int { | 113 | public func getStepsWebview() -> Int { |
106 | return GlobalVariables.stepsWebview | 114 | return GlobalVariables.stepsWebview |
107 | } | 115 | } |
... | @@ -4035,6 +4043,8 @@ public class swiftApi { | ... | @@ -4035,6 +4043,8 @@ public class swiftApi { |
4035 | public func saveCustomerState(_ customer: CustomerStateModel) -> Void { | 4043 | public func saveCustomerState(_ customer: CustomerStateModel) -> Void { |
4036 | GlobalVariables.customerState = customer | 4044 | GlobalVariables.customerState = customer |
4037 | 4045 | ||
4046 | + swiftApi().setLanguage(customer._language) | ||
4047 | + | ||
4038 | swiftApi().consumerIntegrationAsync(nonTelco: customer._nonTelco, acceptedConsent: customer._acceptedConsent, msisdnList: customer._msisdnList, guid: customer._guid, consumerIntegrationCallback, failureCallback: {errorCode in | 4048 | swiftApi().consumerIntegrationAsync(nonTelco: customer._nonTelco, acceptedConsent: customer._acceptedConsent, msisdnList: customer._msisdnList, guid: customer._guid, consumerIntegrationCallback, failureCallback: {errorCode in |
4039 | print("CUSTOMER STATE ERROR") | 4049 | print("CUSTOMER STATE ERROR") |
4040 | }) | 4050 | }) | ... | ... |
-
Please register or login to post a comment