I have an App with a fully working with language localisation using .resx and setting culture info like so
var cultureInfo = new CultureInfo(CurrentLanguage); Thread.CurrentThread.CurrentUICulture = cultureInfo; Thread.CurrentThread.CurrentCulture = cultureInfo; AppResources.Culture = cultureInfo; MainPage = new NavigationPage(new LoginPage());
But after updating visual studio and Xamarin forms to the latest version, it just stopped working ONLY for Android in Release build. (Works fine in Android debug, iOS debug & release)
In Release, doing AppResources.Culture.DisplayName yields the correct language name but when I access the string with AppResources.Home for example, it gives the default English string. Its like the other languages .resx disappeared or something.
Tried enabling and disabling Multi-Dex, setting Code Shrinker to blank, setting Linker Behaviour to Do Not Link. Cleaned and rebuild after deleting bin and obj files. None worked
Completely stumped on how to proceed. Please advise, thanks.
EDIT: I'm using Xamarin.Forms 5.0.0.2012 and VS for Mac 8.9.1
Last known working is XF 4.8.0.1821 and I can't remember the VS version, but it should be around 2 months ago, so probably 8.7 at least