我已经在我的 PCL 项目中完成了本地化,在我的 PCL 中有一个资源文件夹,其中包含两个资源,一个默认英语,另一个阿拉伯语,文化是 ar-AS。我可以在模拟器上运行它,但不能在设备中运行,这是什么原因。我现在正在做 android 项目
最佳答案
Doesn't work in DEBUG mode (Android only)
If the translated strings are working in your RELEASE Android builds but not while debugging, right-click on the Android Project and select Options > Build > Android Build and ensure that the Fast assembly deployment is NOT ticked. This option causes problems with loading resources and should not be used if you are testing localized apps.
关于android - xamarin 形式的本地化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32225540/