I'm stuck in a localization problem. In my Xamarib.Forms app you can easily change the language with a click, I used localization for it and assigned a new culture depends on which country button is clicked. On my development mobile (android) localization works without any problems. No matter if debug or release. But when I publish my app to playstore, the localization returns just the default language. I have tried a lot of different approaches. I set the resx files to "allways copy" and to "never", I add .dll and .resx to android properties -> not compress. I renamed my resx files from languages.en.resx to languages.en-US.resx. But nothing seems to work. Do you have any hints for me? I dont want to build a translation system on my own... Thanks in advance!
1
votes
What tutorial are you following for localization? Also, without publishing to play store, if you just install your app directly FROM the archive you are about to submit, does localization work?
– Saamer
which language ?
– Morse
@Saamer I followed this tut: mindofai.github.io/Implementing-Localization-with-Xamarin.Forms
– Chris Roeder
I publish my apps with Microsofts AppCenter, I will try if there sis a way to unstill the apk from there.
– Chris Roeder
@Prateek the available languages at the moment are german and english
– Chris Roeder
1 Answers
0
votes
You need to define NeutralLanguageResource in the AssemblyInfo.cs
file
The default resx file should have been set to generate code and all other resx files to No Code Generation
Since you said it works locally in debug mode and release mode you can down apj from AppCenter and view its contents in Zip viewer application.
Make sure if you are using ProGuard it's not removing those files.
If nothing works you should reach out to AppCenter support team.