python-babel / babel

The official repository for Babel, the Python Internationalization Library
http://babel.pocoo.org/
BSD 3-Clause "New" or "Revised" License
1.34k stars 448 forks source link

Allow extraction of docstring & comments using `pybabel extract` #1055

Open madebylydia opened 11 months ago

madebylydia commented 11 months ago

Hey there. I'd like to use pybabel extract to extract my translatable strings in a .pot file, as it already does. However, I'd like to also include docstrings and comments in the extracted strings.

This is a thing that already exists in pygettext3, but not in pybabel. Would it be possible to add this functionality to pybabel?

As I pretty much need this, I could work on this addition if no one else is willing to work on this. Just LMK if this is possible to be added. Thank you.