Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scan razor views for missing translations #164

Open
dejancaric opened this issue Oct 24, 2019 · 1 comment
Open

Scan razor views for missing translations #164

dejancaric opened this issue Oct 24, 2019 · 1 comment

Comments

@dejancaric
Copy link

Feature request:

Scan all .cshtml files, extract translation keys, and highlight missing translations.

Something like this:

var matches = Regex.Matches(fileContent, "Translate\\(\"(?<translation_key>.[^\"]+)\"\\)", RegexOptions.Multiline);

@valdisiljuconoks
Copy link
Owner

hm, interesting. might add more expressions as Translate is just one of the ways to get localization..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants