2 interfaces inheriting from IHtmlLocalizer
Microsoft.AspNetCore.Mvc.Localization (2)
IHtmlLocalizerOfT.cs (1)
10public interface IHtmlLocalizer<TResource> : IHtmlLocalizer
IViewLocalizer.cs (1)
9public interface IViewLocalizer : IHtmlLocalizer
2 implementations of IHtmlLocalizer
Microsoft.AspNetCore.Mvc.Localization (1)
HtmlLocalizer.cs (1)
12public class HtmlLocalizer : IHtmlLocalizer
Microsoft.AspNetCore.Mvc.Localization.Test (1)
ViewLocalizerTest.cs (1)
285private class TestHtmlLocalizer : IHtmlLocalizer
32 references to IHtmlLocalizer
Microsoft.AspNetCore.Mvc.Localization (21)
HtmlLocalizer.cs (1)
9/// An <see cref="IHtmlLocalizer"/> that uses the provided <see cref="IStringLocalizer"/> to do HTML-aware
HtmlLocalizerExtensions.cs (7)
9/// Extension methods for <see cref="IHtmlLocalizer"/>. 16/// <param name="htmlLocalizer">The <see cref="IHtmlLocalizer"/>.</param> 19public static LocalizedHtmlString GetHtml(this IHtmlLocalizer htmlLocalizer, string name) 30/// <param name="htmlLocalizer">The <see cref="IHtmlLocalizer"/>.</param> 34public static LocalizedHtmlString GetHtml(this IHtmlLocalizer htmlLocalizer, string name, params object[] arguments) 45/// <param name="htmlLocalizer">The <see cref="IHtmlLocalizer"/>.</param> 47public static IEnumerable<LocalizedString> GetAllStrings(this IHtmlLocalizer htmlLocalizer)
HtmlLocalizerFactory.cs (2)
32public virtual IHtmlLocalizer Create(Type resourceSource) 45public virtual IHtmlLocalizer Create(string baseName, string location)
HtmlLocalizerOfT.cs (2)
9/// An <see cref="IHtmlLocalizer"/> implementation that provides localized HTML content for the specified type 15private readonly IHtmlLocalizer _localizer;
IHtmlLocalizerFactory.cs (7)
7/// A factory that creates <see cref="IHtmlLocalizer"/> instances. 12/// Creates an <see cref="IHtmlLocalizer"/> using the <see cref="System.Reflection.Assembly"/> and 16/// <returns>The <see cref="IHtmlLocalizer"/>.</returns> 17IHtmlLocalizer Create(Type resourceSource); 20/// Creates an <see cref="IHtmlLocalizer"/>. 24/// <returns>The <see cref="IHtmlLocalizer"/>.</returns> 25IHtmlLocalizer Create(string baseName, string location);
IHtmlLocalizerOfT.cs (1)
7/// An <see cref="IHtmlLocalizer"/> that provides localized HTML content.
ViewLocalizer.cs (1)
21private IHtmlLocalizer _localizer = default!;
Microsoft.AspNetCore.Mvc.Localization.Test (11)
HtmlLocalizerOfTTest.cs (2)
16var htmlLocalizer = new Mock<IHtmlLocalizer>(); 38var htmlLocalizer = new Mock<IHtmlLocalizer>();
MvcLocalizationServiceCollectionExtensionsTest.cs (4)
95public IHtmlLocalizer WithCulture(CultureInfo culture) 124public IHtmlLocalizer WithCulture(CultureInfo culture) 132public IHtmlLocalizer Create(Type resourceSource) 137public IHtmlLocalizer Create(string baseName, string location)
ViewLocalizerTest.cs (5)
59var htmlLocalizer = new Mock<IHtmlLocalizer>(); 91var htmlLocalizer = new Mock<IHtmlLocalizer>(); 325public IHtmlLocalizer WithCulture(CultureInfo culture) 343public IHtmlLocalizer Create(Type resourceSource) 348public IHtmlLocalizer Create(string baseName, string location)