Comments (3)
Thanks for the tip. It was indeed just a timing issue as I was initialising the Phrase SDK just after creating the app's root view controller.
from ios-sdk.
@irlennard Thank you for your report!
When swizzling is enabled Phrase.shared.localizedString(forKey:)
internally just forwards to Bundle.main.localizedString(forKey:)
(as this method is swizzled).
Without seeing any code, I think you are probably running into a timing issue. The completion closure of updateTranslations()
is a safe place to re-assign translations with NSLocalizedString()
or Phrase.shared.localizedString(forKey:)
. Ensure dispatching to mainQueue
first where needed.
Always a good hint: Please also try deleting the App from your Simulator or Device to see if the Bundle somehow got corrupted (not related to the OTA SDK).
Please let me know if this helps.
from ios-sdk.
@irlennard You're weclome, glad I could help! 😊 No problem, asynchronous network communication is always a bit tricky to handle, especially when UI comes into play.
from ios-sdk.
Related Issues (20)
- Provide DSYM files for xcframework HOT 1
- Preferred language is ignored HOT 10
- [Binary upload error] Multiple binaries with same code sign path HOT 3
- unchecked "use default language as locale" setting in OTA doesn't work HOT 2
- Two languages being returned when using "localeOverride" HOT 12
- Planning for OTA SwiftUI support? HOT 3
- String is not localised when running test plan with multiple configs HOT 4
- Preferred language automatically switch to Localization native development region HOT 5
- Xcode 14 preview error HOT 3
- tableName parameter is ignored, Phrase always returns from Localizable HOT 9
- New strings values are not available on updateTranslation completion handler HOT 11
- Can we get a new "Example App" HOT 3
- Translations from other tables are lost HOT 11
- Latencies after switching from 4.0.1 to 4.1.0 HOT 7
- Configure OTA with two different distributions HOT 3
- Support mac catalyst
- Support mac catalyst HOT 3
- Phrase App Inconsistency update error HOT 7
- Malformed Archive Error and SPM Compatibility Issue HOT 5
- Add Privacy Manifest file to library if needed HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ios-sdk.