Localizing your applications
Supporting multiple languages is a key requirement for applications, especially in the enterprise space. Offering an application in the native language of our users improves the user experience and also makes it easier for people who might not be familiar with the technology to use.
WinUI, as with other UI platforms, offers a way to create a UI that can be easily localized by defining placeholders that, at runtime, are replaced with strings taken from a localization file that matches the language of the user.
Localization is one of the areas that has been significantly upgraded from WPF, thanks to a new resource management system called MRT Core, which, other than supporting localization, also enables us to easily load custom resources, such as a different image based on the scaling factor of a device or based on the Windows theme that we set.
The starting point to enable localization is to add a resource file in your application, which is based...