Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26651] Windows: Ti.Locale.setLangauge result is delayed

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2019-01-02T21:37:59.000+0000
Affected Version/sRelease 7.5.0
Fix Version/sn/a
ComponentsWindows
Labelsn/a
ReporterChristopher Williams
AssigneeKota Iguchi
Created2018-12-13T18:02:17.000+0000
Updated2019-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?

Comments

  1. Kota Iguchi 2018-12-19

    https://github.com/appcelerator/titanium_mobile_windows/pull/1337
  2. Keerthi Mahalingam 2019-01-02

    FR Passed.
  3. Keerthi Mahalingam 2019-01-02

    PR merged.

JSON Source