1
0
mirror of synced 2025-01-19 16:08:41 +01:00
TaikoLocalServer/TaikoWebUI/ResXMudLocalizer.cs

17 lines
410 B
C#
Raw Normal View History

using TaikoWebUI.Localization;
using Microsoft.Extensions.Localization;
using MudBlazor;
namespace TaikoWebUI;
internal class ResXMudLocalizer : MudLocalizer
{
private IStringLocalizer localization;
public ResXMudLocalizer(IStringLocalizer<LocalizationResource> localizer)
{
localization = localizer;
}
public override LocalizedString this[string key] => localization[key];
}