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
{{ message }}
This repository has been archived by the owner on May 1, 2024. It is now read-only.
If user changes language with LocalizationResourceManager.Current.SetCulture(), all strings localized with {xct:Translate String} on currency open pages get updated to new language, but if user opens new page it will be localized with old language.
Steps to Reproduce
Open some page (page has language A)
Change culture to language B with LocalizationResourceManager.Current.SetCulture()
Open new page with some string localized with {xct:Translate String}
New page will be localized with language A instead of B
Expected Behavior
Newly opened pages respect current language
Actual Behavior
Newly opened pages localized using language app was opened with
Basic Information
Version with issue: 1.0.0
Last known good version:
IDE:
Platform Target Frameworks:
iOS:
Android: 10
UWP:
Android Support Library Version:
Nuget Packages:
Affected Devices:
Workaround
Manually localize all strings from the code
Reproduction imagery
Reproduction Link
The text was updated successfully, but these errors were encountered:
maxkoshevoi
added
bug
Something isn't working. Breaky break.
s/unverified
This issue needs verification/reproduction by a team member. PRs cannot be accepted/merged.
labels
Jan 11, 2021
I have seen this behavior in my own app too and have been working on a fix there. I will have to look at how I can implement this the easiest within the current XCT API without breaking it.
I have seen this behavior in my own app too and have been working on a fix there. I will have to look at how I can implement this the easiest within the current XCT API without breaking it.
I think, I found the cause for this issue. Thread.CurrentThread.CurrenUICulture is not persisted between pages. To fix it just for your app, you can store culture yourself and set Thread.CurrentThread.CurrenUICulture manually in constructor for each page.
I think it should work.
I created PR to fix issue in XCT itself.
maxkoshevoi
added a commit
to maxkoshevoi/NureTimetable
that referenced
this issue
Jan 12, 2021
Description
If user changes language with
LocalizationResourceManager.Current.SetCulture()
, all strings localized with{xct:Translate String}
on currency open pages get updated to new language, but if user opens new page it will be localized with old language.Steps to Reproduce
LocalizationResourceManager.Current.SetCulture()
{xct:Translate String}
Expected Behavior
Newly opened pages respect current language
Actual Behavior
Newly opened pages localized using language app was opened with
Basic Information
Workaround
Manually localize all strings from the code
Reproduction imagery
Reproduction Link
The text was updated successfully, but these errors were encountered: