Windows Store App - Globalization
This document discusses how to globalize a Windows Store app by adding resource files for different languages in a Strings folder, populating the files with translated content and styling, linking elements in the app's XAML to the resources using x:Uid, and setting a default language in the app manifest. Testing involves changing the system language to verify the app displays the correct localized resources.
Axa Assurance Maroc - Insurer Innovation Award 2024
Windows Store App - Globalization
1. Windows Store App - Globalization
1) Add Strings folder in project. In the Strings folder add folders for different language that needs to be
supported by the application. In each language folder add a Resources.resw file. Refer to the image below. I
have added two resource files for English and Japanese.
2) Go to each resource file and add resources for content and width property of the button in the view
(XAML). Refer to the image below.
English Resource File
2. Japanese Resource File
3) Now we can go to view (XAML) and hook up the button with the resource (navButton) in Resources.resw
file using x:Uid attribute on the button.On doing this the button picks value for its Content and Width
properties from the Resources.resw file.
4) Set the default language for the application in Package.appxmanifest.
3. 5) Test the application by toggling the system language preferences from control panel.