    using Microsoft.Extensions.Localization;
    using MudBlazor;

    internal class ResXMudLocalizer : MudLocalizer
    {
        private IStringLocalizer _localization;

        public ResXMudLocalizer(IStringLocalizer<ResXLanguageResource> localizer)
        {
            _localization = localizer;
        }

        public override LocalizedString this[string key] => _localization[key];

        public override LocalizedString this[string key, params object[] arguments] => _localization[key, arguments];
    }