Summary
Gets or sets the type to use when looking up the resource file.
- Namespace
- Localization
.AspNetCore .TagHelpers - Containing Type
- Generic
Localize Tag Helper
Syntax
[HtmlAttributeName(LOCALIZE_TYPE)]
public virtual Type Type { get; set; }
Examples
<span localize-type="typeof(Localization.Demo.Models.SharedType)">
The text
</span>
Creates a new html localizer passing the specified type.
Attributes
Type | Description |
---|---|
HtmlAttributeName |
Value
Type | Description |
---|---|
Type | The type to use when looking up the resource file. |