[Asp.net 5] Localization-easy-to-use Localization,
Localization is also called internationalization. When multiple language programs are used, the current language can be switched to another language with one click. It is especially important for multinational corporations or companies that have business dealings with foreign countries. Even if the portal of an ordinary company supports Chinese, English, and traditional Chinese, it will make people feel taller. Yes, no! However, Microsoft has always supported internationalization/localization, and now the localization code is open-source, which is quite nice. This article introduces the "Localization-dev" solution of Microsoft asp. net5. You can download it from the asp. net5 website on github:
Https://github.com/aspnet/Localization
Follow the Convention to first go to the "Localization-dev" solution:
The role of the five projects of the entire solution:
- Microsoft. Framework. Localization. Abstractions is undoubtedly an abstract project. It is an interface and abstract class exposed to the outside.
- Microsoft. Framework. Localization is the implementation of the abstract interface above.
- Microsoft. AspNet. Localization this is the first abstract interface implementation for asp.net
- Some Cache Information of Microsoft. Framework. Globalization. CultureInfoCache Globalization information.
- The cache on the CultureInfoGenerator may be different for different machines. It is used to generate the code file of the above project.
Therefore, the whole globalization will be divided into three parts:
- [Asp.net 5] Localization-easy-to-use Localization-Global Information
- [Asp.net 5] Localization-resx resource file management
- [Asp.net 5] multi-language Localization-Asp.net Runtime