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

Cannot extract context strings from identifiers #53

Open
chkt opened this issue May 6, 2022 · 1 comment
Open

Cannot extract context strings from identifiers #53

chkt opened this issue May 6, 2022 · 1 comment

Comments

@chkt
Copy link

chkt commented May 6, 2022

Hi,

thanks for your great work! I encountered a smallish problem where the extractor fails to extract context strings that are not string literals from js/ts files. I like to put all my context strings into a typescript const enum to keep them dry.

Would it be feasible for your parser to resolve identifiers that point to stringifyable const and enum values in context arguments?

@lukasgeiter
Copy link
Owner

Hi, that's an interesting idea. While it is technically possible, I'm not sure it's in the scope of this project. I'll keep this issue open for the time being though. If other people are looking for this too, I might reconsider.

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

No branches or pull requests

2 participants