You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the package set up, I can see the LingoHub SDK downloads the file but when I try to use it in the app there is no value.
NSLocalizedString("correct_key", comment: "") the output is the key, not value
LingoHubSDK.shared.localizedString(forKey: "correct_key") the output is the key, not the value
LingoHubSDK.shared.update { result in
switch result {
case .success(let value):
print("LingoHubSDK update: \(value)")
case .failure(let error):
print("LingoHubSDK error: \(error.localizedDescription)")
}
}
and in the ViewController I've tried both methods as shown above.
The LingoHubSDK.shared.update comes as true when I generate a new version of the package.
I have the package set up, I can see the LingoHub SDK downloads the file but when I try to use it in the app there is no value.
In the didFinishLaunchingWithOptions I call:
and in the ViewController I've tried both methods as shown above.
The LingoHubSDK.shared.update comes as true when I generate a new version of the package.
I've created a new project just to test the SDK and followed the steps in here:
https://lingohub.com/blog/2020/09/ios-sdk-localization
The text was updated successfully, but these errors were encountered: