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

Gettext doesn`t extract template literals from JS #275

Open
DaweTaller opened this issue Nov 1, 2021 · 1 comment
Open

Gettext doesn`t extract template literals from JS #275

DaweTaller opened this issue Nov 1, 2021 · 1 comment

Comments

@DaweTaller
Copy link

DaweTaller commented Nov 1, 2021

Hi,

in version 4.6.1 library work fine with extracting translations from template literals in JS files, but after upgrade to 4.8 library doesnt extract translations from template literals for example new version doesnt extract "Foo" from string Text ${__("Foo")} bar but older version does.

Unfortunately I didn`t found solution or some clues to resolve this problem...

Thanks for response.

@oscarotero
Copy link
Member

The javascript extractor in version 4.x is very rudimentary. I recommend to upgrade to Gettext 5.x and use JS-Scanner that provide a much more powerful solution, due it uses mck89/peast under the hood.

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