Table of Contents

Namespace Tlumach.Avalonia

Classes

Translate

A XAML markup extension that binds a 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}}".

TranslationUnit

Represents a unit of translation - a unit of text (a word, a phrase, a sentence, etc.) in a translation accessible using a unique key.

This class is used in the code generated for Avalonia applications. It exposes the text as an observable (Value) that Avalonia bindings subscribe to.

UntranslatedUnit

This class can be used to present some application-provided string in situations where a TranslationUnit is required.