Windows万能10力下载语言资源

Windows Universal 10 force download language resource

我们正在用 3 种不同的语言创建一个 Windows 10 通用应用程序,其中一种是少数语言(巴斯克语)。在我们的本地测试期间,我们可以更改为其中任何一种,但是当从 Windows 商店安装应用程序时,巴斯克语资源不可用,除非巴斯克语被列为 OS 语言之一。

我们已将 NeutralResourcesLanguage 属性设置为 Basque,希望 Basque 资源能够嵌入到应用程序中,以便它们始终可用,但无济于事。

有什么方法可以强制下载巴斯克语资源,而不管巴斯克语是否被列为 OS 级别的语言?

Is there any way to force the download of the Basque resources regardless of Basque being listed as a language at the OS level?

是的,您可以在打包应用时将 Generate app bundle 设置为 Never

如果生成了bundle文件,那么他会将你的应用程序切割成不同的部分来优化下载。对于语言资源,只会下载与设备语言相关的资源文件。如果您没有安装相应的 Windows-Language-Pack,应用程序将不会显示指向资源文件的 属性 的相关语言。

更多信息可以参考Dynamically change the language of a universal app