Skip to content

How to translate "Time ago" in MessageProvider ? #3730

Answered by dvoituron
MBNSoftware asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by MBNSoftware
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants