1
0
mirror of synced 2024-11-24 06:50:15 +01:00
TaikoLocalServer/TaikoWebUI/ResXMudLocalizer.cs
2024-01-22 01:13:13 +08:00

17 lines
410 B
C#

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];
}