Replies: 4 comments 3 replies
-
Sure! The <Label
FontSize="18"
HorizontalOptions="Center"
SemanticProperties.Description="{localization:Translate WelcomeToMAUI}"
SemanticProperties.HeadingLevel="Level2"
Text="{localization:Translate WelcomeToMAUI, StringFormat='Yo, {0}'}" /> ...or if you want to inject values into a translated text, this will come in the upcoming release with the PR #16! |
Beta Was this translation helpful? Give feedback.
-
Thanks @SirJohnK but I have not understand. Text="{Binding MyProperty, StringFormat='localization:Translate MyPropertyTranslatedFormatString'}" Where MyPropertyTranslatedFormatString = 'Hi {0}' |
Beta Was this translation helpful? Give feedback.
-
This feature is now live on NuGet in the latest release v1.2.0! See more information in the Readme section! With the Text="{localization:TranslateBinding MyProperty, TranslateFormat=MyPropertyTranslatedFormatString}" |
Beta Was this translation helpful? Give feedback.
-
@acaliaro , have you seen the new release!? 😃 |
Beta Was this translation helpful? Give feedback.
-
Hi
is it possible to user LocalizationManager with stringFormat directly in XAML?
https://github.com/dotnet/docs-maui/blob/main/docs/fundamentals/data-binding/string-formatting.md
Beta Was this translation helpful? Give feedback.
All reactions