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

Allow skipping comments in source code #190

Open
remko opened this issue Jul 23, 2020 · 2 comments
Open

Allow skipping comments in source code #190

remko opened this issue Jul 23, 2020 · 2 comments

Comments

@remko
Copy link

remko commented Jul 23, 2020

🚀 Feature Proposal

Scanning now processes and tries to parse code in comments.
This means too many keys end up in the translation file, and scanning even fails on code that isn't used.

Provide an option to not scan comments for translation keys. (or don't do it at all, which is what I expected).

Motivation

Sometimes, commented out code contains translation calls. This code can e.g. be commented out temporarily. In this case, it doesn't make sense to translate these strings. Sometimes, the code in comments isn't even legal code, and still the parser tries to parse it.

@pi0neerpat
Copy link

Was looking for an answer and saw this has already been posted here #118

@gong9
Copy link

gong9 commented Apr 14, 2023

Yes, I recently mentioned a related PR
#248

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

3 participants