How to translate "Time ago" in MessageProvider ? #3730
-
Hello, In the notification center, how can I personalize/translate the surrounded text ? Every other text is easily accessible but this one does not seem to be editable. What am I missing ? Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
For the moment, you can't easily customize this resource, except by completely customizing the MessageBar, You can customize these resources using a This is something we're in the process of correcting in the next version (v5). |
Beta Was this translation helpful? Give feedback.
-
Thank you ! Then I will wait for v5. Too much (useless) work in sight for such a minor issue on my side ;) Regards, |
Beta Was this translation helpful? Give feedback.
For the moment, you can't easily customize this resource, except by completely customizing the MessageBar,
and using the static method
DateTimeExtensions.ToTimeAgo(delay, TimeAgoOptions)
.You can customize these resources using a
ResourceManager
, like we did in this default source file.https://github.com/microsoft/fluentui-blazor/blob/dev/src/Core/Resources/TimeAgoResource.Designer.cs
This is something we're in the process of correcting in the next version (v5).
https://fluentui-blazor-v5.azurewebsites.net/localization