You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
"zh-cn" cannot work when .net core mvc is deployed on ubuntu16.0.4.
I create Resource files follow the hierarchy of Views, and name them "en" and "zh-cn".
My local env. (win10) works fine, but it cannot work on ubuntu, it always show the "Keys" on page.
When I use "zh" instead, the issue fixed. So I guess the "-" is the key.
The text was updated successfully, but these errors were encountered:
Hey @atpyk, this is actually specific to the set of Chinese cultures rather to whether the name has a "-" in it. As I pointed out here cultures can differ depending on which framework you use. It is also true that cultures differ across platforms. For example, on windows when I do System.Globalization.CultureInfo.GetCultures I get the following cultures which start with zh:
As you can see, the culture zh-CN only exists on windows, but zh exists on both, which is why you saw the behavior you did.
As for solutions to this, I don't know the specifics of the difference between these languages, but are zh-CN and zh-Hans roughly equivalent since they exist on both platforms? If not the only current solution I can see would be to use zh instead of something more specific. Does that help your issue?
"zh-cn" cannot work when .net core mvc is deployed on ubuntu16.0.4.
I create Resource files follow the hierarchy of Views, and name them "en" and "zh-cn".
My local env. (win10) works fine, but it cannot work on ubuntu, it always show the "Keys" on page.
When I use "zh" instead, the issue fixed. So I guess the "-" is the key.
The text was updated successfully, but these errors were encountered: