It would be nice if ResX Manager could support the extraction of string resources from cshtml files.
Two cases could be addressed :
- HTML/JS String
<meta name="description" content="__RESOURCE_TO_EXTRACT__">
- Razor String
@{
int x = 123;
string y ="__RESOURCE_TO_EXTRACT__";
}
Highlighting the string would give access to the "Move to resource" command like in a cs file.
The html/JS string could be replaced by @Html.Raw(Resx.ID) optionaly, or by default, as it's usually the way you want the string injected in the html/JS.
Two cases could be addressed :
- HTML/JS String
<meta name="description" content="__RESOURCE_TO_EXTRACT__">
- Razor String
@{
int x = 123;
string y ="__RESOURCE_TO_EXTRACT__";
}
Highlighting the string would give access to the "Move to resource" command like in a cs file.
The html/JS string could be replaced by @Html.Raw(Resx.ID) optionaly, or by default, as it's usually the way you want the string injected in the html/JS.