[TIMOB-26651] Windows: Ti.Locale.setLangauge result is delayed
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2019-01-02T21:37:59.000+0000 |
Affected Version/s | Release 7.5.0 |
Fix Version/s | n/a |
Components | Windows |
Labels | n/a |
Reporter | Christopher Williams |
Assignee | Kota Iguchi |
Created | 2018-12-13T18:02:17.000+0000 |
Updated | 2019-05-09T06:52:57.000+0000 |
Description
In our unit tests, we attempt to change languages and ensure we end up pulling the correct translation strings. Windows behaves oddly in that the language does get changed immediately in our model, but it still pulls the translation strings from the old language for a little while.
So ~3 tests fail in order by using the wrong language's strings, and it appears to be using the previous test's language. I'm not sure if there's some caching going on, or overriding the language is really done async - or maybe when we ask for the ResourceLoader for the current view it's outdated because it needs to load async when primary language changes?
https://github.com/appcelerator/titanium_mobile_windows/pull/1337
FR Passed.
PR merged.