Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CrossMultilingual.Current.DeviceCultureInfo is not fetching the correct device culture in x_64 bit UWP application build #7

Open
vishnuprasadDH opened this issue Oct 11, 2018 · 1 comment

Comments

@vishnuprasadDH
Copy link

If you are creating an issue for a BUG please fill out this information. If you are asking a question or requesting a feature you can delete the sections below.

Failure to fill out this information will result in this issue being closed. If you post a full stack trace in a bug it will be closed, please post it to http://gist.github.com and then post the link here.

Bug Information

This issue is happening in the Sample given in the Github.
Its happening in UWP (x_64 bit architecture build ) that its not detecting the correct device culture instead always returning the default culture associated with the packaging.

However when i create the build for all platform ( x86,x_64 and ARM ) its working fine.

Version Number of Plugin:1.0.2
Device Tested On:Surface Pro
Simulator Tested On:Dell Laptop
Version of VS: VS 2007 version15.7.6
Version of Xamarin:
Versions of other things you are using:

Steps to reproduce the Behavior

1)Use the sample in the Github
2)Build it for UWP for 64 bit
3)Try to access CrossMultilingual.Current.DeviceCultureInfo - not changing accordingly

Expected Behavior

Actual Behavior

Code snippet

Screenshotst

@yanxiaodi
Copy link

I checked the source code and it just calls the native CultureInfo class. It seems that it is related to the implementation of CultureInfo in UWP. Hope these articles are helpful:
https://www.pedrolamas.com/2015/11/02/cultureinfo-changes-in-uwp/
https://www.pedrolamas.com/2017/05/03/cultureinfo-changes-in-uwp-part-2/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants