17 lines
410 B
C#
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];
|
|
} |