MAUIverse MAUIverse

Localize .NET MAUI application

Localization in .NET MAUI starts the same way as in other .NET apps: resource files. Vladislav adds AppResources.resx for the default English strings and AppResources.uk.resx for Ukrainian, then references them from XAML with x:Static. The article also adds GenerateSatelliteAssembliesForCore to the project file so the satellite assemblies are produced.

That setup follows the device language, so changing it requires restarting the app. To let people choose a language inside your app and see the change immediately, he introduces a LocalizationResourceManager that implements INotifyPropertyChanged and raises it whenever SetCulture is called. Bindings to the manager’s indexer then update on the fly. A TranslateExtension markup extension hides the binding, so a title becomes {localization:Translate MainPageTitle}.

If your users should be able to pick a language without leaving the app, the full sample is on GitHub.

View Source →

← Back to Community Feed

}