You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Localization is the process of making an application multilingual by formatting the content according to the languages. This involves configuring the application for a specific language.
6
+
7
+
### Changing application language
8
+
9
+
The application language can be changed by setting the desired language to the `ApplicationLanguages.PrimaryLanguageOverride` property in the constructor of the main window. Localization can be done while changing the application language by creating a .resw file.
The following screenshot illustrates how the localization is applied to the datagrid based on the defined language to the `ApplicationLanguages.PrimaryLanguageOverride` property.
23
+
24
+
### Creating .resw files
25
+
26
+
The following steps can be used to generate .resw files for any language:
27
+
28
+
1. Right-click the project and add a New folder named as “Resources”.
29
+
30
+
2. Add another folder and name the folder with “language name”. For example, “de” for German language. Find the supported culture codes from [here](https://docs.microsoft.com/en-us/windows/uwp/app-resources/how-rms-matches-lang-tags).
31
+
32
+
3. Add [default resource files](https://github.com/syncfusion/winui-controls-localization-resource-files) in the following structure.
33
+
34
+
4. Now, the key names from default resource files can be defined and assigned values based on language.
0 commit comments