GenericLocalizeTagHelper.

Localizer Property

Summary

Gets or sets the localizer to use when resolving the specified strings.

Syntax

[HtmlAttributeName("localizer")]
public IHtmlLocalizer Localizer { get; set; }

Examples

 @inject Microsoft.AspNetCore.Mvc.Localization.IViewLocalizer loc;

 <localize localizer="@loc">
   Text to localize
 </localize>

Attributes

Type Description
HtmlAttributeName

Value

Type Description
IHtmlLocalizer