Kinnara / ModernWpf

Modern styles and controls for your WPF applications
MIT License
4.45k stars 446 forks source link

Use the neutral cultures zh-Hans and zh-Hant #508

Open baochenw opened 2 years ago

baochenw commented 2 years ago

Fixes #497

Problem: Refer to https://github.com/dotnet/msbuild/issues/3897 When building with dotnet cli, certain cultures cannot be utilized for resource localization, such as getting localized strings. This impacts both the build process (e.g., identifying and processing resource files) and the lookup of resources at runtime. For example: MyStrings.zh-TW.resx will not have a resource assembly created.

Solution: This change renames all .zh-CN.resx to .zh-Hans.resx and .zh-TW.resx to .zh-Hant.resx.

Test Done: Local build with dotnet cli and verified chinese assemblies are created.