In This Topic
Localizing strings can be done easily with just a bit of code and the built-in localization files. If the language needed is not one that is included, you can create your own localization resource file.
Note: The file extension for a UWP Edition Resource file is .resw.
Follow these steps:
- Add a resource file to your application:
- Right-click or tap your application name and select Add | New Item.
- In the Add New Item dialog box, select Resource File (.resw).
- Name your resource file so the name reflects the following format:
[Windows Apps Assembly Name].Resources.[C1 Control].resw
-
- Select Add to add your file.
- When your file opens, add or edit the strings to reflect the changes you need to make.
- Select the resource file your just added and change the Build Action to PRIResource in the Properties window.
- Run your sample and see the changes you made to the resource strings. In the following images, only the text for the "Paste" function was changed: