Summary
Gets or sets the name to optionally override the name/path of the resource file. If the name
is empty it resolves to the current path and name of the view. i.e the view located at
"~/Views/Home/About.cshtml" passes the following name to the html localizer as Views/Home/About.
Syntax
[HtmlAttributeName(LOCALIZE_NAME)]
public virtual string Name { get; set; }
Examples
<span localize="MyCustomResource">
The text to localize.
</span>
Passes the path as
~/MyCustomResource.
Attributes
| Type |
Description |
| HtmlAttributeName |
|
Value
| Type |
Description |
| string |
The optional name/path to the resource file. |