ant-design-blazor/site/AntDesign.Docs/Shared/ContributorsList.razor
James Yeung 036a6e2442
feat(i18n): implement interactive StringLocalizer and simple localization (#3804)
* feat(module: i18n): implement IStringLocalizer

* fix resource name

* add blazor string localizer

* replace localizer

* add proj

* refacor assembly

* fix namespace

* rename

* rename

* clean

* clean

* clean

* add docs
2024-04-19 20:28:55 +08:00

24 lines
842 B
C#

<ul class="contributors-list" style="display: flex; list-style: none; margin: 0px; padding: 0px;">
@if (_avatarList?.Any() == true)
{
@foreach (var item in _avatarList)
{
<Tooltip Title="@($"{Localizer["app.content.contributors"]}:{item.Username}")">
<Unbound>
<a @ref="context.Current" target="_blank" href="@item.ProfileUrl">
<Avatar Text="@item.Username" Src="@item.Url" />
</a>
</Unbound>
</Tooltip>
}
}
else
{
for (var i = 0; i < 3; i++)
{
<SkeletonElement Style="margin-right: 8px;margin-bottom: 8px;" Type="avatar"
Active Size="SkeletonElementSize.Default" Shape="@AvatarShape.Circle" />
}
}
</ul>