问题描述
如何使用resx文件通过ASP.NET vNext(云优化模式)进行本地化?如何为当前线程设置区域性?
How can I use resx files for localization with ASP.NET vNext (cloud optimize mode) and how can I set culture for current thread?
System.Threading.Thread.CurrentThread.CurrentCulture
System.Threading.Thread.CurrentThread.CurrentUICulture
CurrentCulture
和CurrentUICulture
属性丢失.我有VS 2015 CTP3.
CurrentCulture
and CurrentUICulture
properties are missing. I have VS 2015 CTP3.
帕维尔
推荐答案
vNext的本地化故事尚未准备好.我们仍在努力.
The localization story for vNext is not yet ready. We are still working on it.
编辑(2015年2月28日):
EDIT (Feb-28-2015):
本地化将在RC/Beta4版本中提供.这是 https://github.com/DamianEdwards/i18nStarterWeb 的原型.我希望接下来的几周内事情会开始出现在dev分支中.
Localization will be available in the RC/Beta4 release. Here is a prototype https://github.com/DamianEdwards/i18nStarterWeb. I expect things to start showing up in the dev branch over the next few weeks.
这篇关于ASP.NET vNext-本地化(.resx)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!