MultilingualPlugin icon indicating copy to clipboard operation
MultilingualPlugin copied to clipboard

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

Open vishnuprasadDH opened this issue 7 years ago • 1 comments

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

vishnuprasadDH avatar Oct 11 '18 13:10 vishnuprasadDH

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/

yanxiaodi avatar Feb 07 '19 20:02 yanxiaodi