Skip to content
Discussion options

You must be logged in to vote

indeed, the extractor is currently limited to read plain cs files, as it uses Roslyn to build a syntax tree and identify string resources. Would need to see what it takes to read cshtml, but seems it would require to include the RazorTemplateEngine first to extract the code, which than could be parsed:
https://stackoverflow.com/questions/28392086/getting-a-semanticmodel-of-a-cshtml-file

It may sound counterproductive, but a short term solution may rather be the use of the legacy GNU GetText tool (https://www.gnu.org/software/gettext/manual/gettext.html#xgettext-Invocation) which just uses plain regex - however that doesn't support i.e. C# string interpolation ($"{}")

I'll take a look but …

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by devployment
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@perpetualKid
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants