古巴的.NET CultureInfo?

发布于 2024-09-27 14:37:31 字数 184 浏览 0 评论 0原文

我刚刚注意到 .NET Framework 在 CultureInfo 类中不包括古巴(格式 xx-XX)。此案例的最佳实践是什么?

I just noticed that the .NET Framework doesn't include Cuba in the CultureInfo class (format xx-XX). What is the best practice on this case?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

与他有关 2024-10-04 14:37:31

我认为最佳实践是创建自定义 CultureInfo

或者您可以使用new CultureInfo("es")

I think best practice is to create a Custom CultureInfo.

Or you could use new CultureInfo("es").

杯别 2024-10-04 14:37:31

由于古巴没有特定的文化,我会坚持简单地使用 es (因为它是一个西班牙语国家)。

Since there isn't a specific culture for Cuba, I would stick with simply using es (since it is a Spanish speaking country).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文