Polyglot.Maui
0.1.0
dotnet add package Polyglot.Maui --version 0.1.0
NuGet\Install-Package Polyglot.Maui -Version 0.1.0
<PackageReference Include="Polyglot.Maui" Version="0.1.0" />
<PackageVersion Include="Polyglot.Maui" Version="0.1.0" />
<PackageReference Include="Polyglot.Maui" />
paket add Polyglot.Maui --version 0.1.0
#r "nuget: Polyglot.Maui, 0.1.0"
#:package Polyglot.Maui@0.1.0
#addin nuget:?package=Polyglot.Maui&version=0.1.0
#tool nuget:?package=Polyglot.Maui&version=0.1.0

Polyglot.Maui
Runtime localization for .NET MAUI apps, with automatically updating XAML bindings and notifications for view models.
Features
- Look up strings from your app's
.resxresources. - Update XAML translations when the culture changes.
- Notify view models using CommunityToolkit.Mvvm messaging.
- Persist and restore the user's culture with MAUI Preferences.
Requirements
- .NET 11 and .NET MAUI 11.
- Android, iOS, Mac Catalyst, or Windows. The package targets
net11.0and uses MAUI's platform implementations.
Installation and setup
dotnet add package Polyglot.Maui
Create .resx resource files and register their generated resource manager
before loading localized XAML:
using Polyglot.Maui;
using YourApp.Resources.Strings;
builder.Services.AddPolyglot(AppResources.ResourceManager);
Restore the culture at startup, before creating pages that use translations:
using System.Globalization;
using Polyglot;
localizationManager.RestorePreviousCulture(CultureInfo.GetCultureInfo("en-US"));
Here localizationManager is an injected ILocalizationManager. Change the
language with localizationManager.UpdateUserCulture(CultureInfo.GetCultureInfo("fr-FR")).
The chosen culture is saved to MAUI Preferences. Missing resource keys fall
back to the key itself.
XAML translations
Declare the namespace and use a resource key:
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:polyglot="clr-namespace:Polyglot.Maui;assembly=Polyglot.Maui">
<Label Text="{polyglot:Translate Welcome}" />
</ContentPage>
The binding updates automatically when the culture changes.
View models
Inject ILocalizedResourcesProvider to read translations and IMessenger to
receive CultureChangedMessage. The message's Value contains the new
CultureInfo. Raise PropertyChanged for computed properties that depend on
translated strings; unlike XAML Translate bindings, they do not update by
themselves. Unregister an inactive recipient if it must stop receiving
messages, even when using weak registration.
AddPolyglot registers WeakReferenceMessenger.Default if no IMessenger
is already registered. Register your own messenger first to use it instead.
License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- CommunityToolkit.Mvvm (>= 8.4.2)
- Microsoft.Maui.Controls (>= 11.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0 | 0 | 12/4/2026 |
| 0.1.0-preview.1 | 9 | 12/3/2026 |