Closed wolkodlack closed 9 months ago
Hello, I just ran into the same problem! I solved it by calling the extract
function with the parse_template_string
option set to True
. I also had to update the version of the library as it doesn't seem to be supported until version 2.12.0.
Yep – this was added pretty recently and needs opt-in; see above :)
Overview Description
No Template Literals support for .js files.
Steps to Reproduce
Update babel.cfg
Create test.js with Template Literal e.g.
Execute extractor pybabel extract -F config/babel.cfg -o messages.pot .
Actual Results
No translate entries added to the messages.pot
Expected Results
It would be good to find expected entries.
Reproducibility
Additional Information
Could be workarounded by adding same call outside of Template Literal _("Some string to translate");
Is it possible to fix this case? Thank you.