Table of Contents

Namespace Tlumach.MAUI

Classes

Translate

A XAML markup extension that binds a bindable property to the text of a translation unit and updates the property when the culture of the unit's translation manager changes or when NotifyPlaceholdersUpdated() is called.

Usage: Text="{tlumach:Translate {x:Static translations:Strings.Hello}}", or, with a unit that comes from a binding, Text="{tlumach:Translate {Binding MyTranslationUnit}}" or Text="{tlumach:Translate Unit={Binding MyTranslationUnit}}".

The extension does not keep the target alive: the translation manager and the units, which the generated classes keep in static properties, reference it weakly.