gpt4 book ai didi

localization - Windows 运行时 : How to get the list of the user's preferred languages?

转载 作者:行者123 更新时间:2023-12-04 04:20:45 25 4
gpt4 key购买 nike

WinRT 类型的一些构造函数接受 IEnumerable<string>尝试解决语言选择的语言。例如,有 a Windows.Globalization.NumberFormatting.CurrencyFormatter constructor这需要一个语言列表来尝试确定货币格式化程序的语言选择。

我所知道的访问用户语言的唯一方法是默认构造一个 Windows.Globalization.Language 对象并访问 Id property .如果用户设置了首选语言列表,如何按照他们指定的优先级顺序获取完整列表?

最佳答案

我认为这个属性是你需要的: GlobalizationPreferences.Languages .请参阅 GlobalizationPreferences class 上的 MSDN 页面了解更多信息。

关于localization - Windows 运行时 : How to get the list of the user's preferred languages?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8774038/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com