Please make it possible to retrieve the column number along with the line number of a message.
Use case: to parse a Vue.js template the obvious way is to compile the Vue template into JS and then feed the compiled JS to the gettext-extractor. The Vue template compiler returns the compiled JS plus a sourceMap, so it would be easy to fix up the references using https://github.com/mozilla/source-mapif you could get the column number. (Note that setting the column number to always 0 or always 9999 does not work reliably with mozilla/source-map.)
One way to fix this would be a callback before storing each message, with the message, filename, line, column as parameters, so I could replace the reference with the correct one.
Please make it possible to retrieve the column number along with the line number of a message.
Use case: to parse a Vue.js template the obvious way is to compile the Vue template into JS and then feed the compiled JS to the gettext-extractor. The Vue template compiler returns the compiled JS plus a sourceMap, so it would be easy to fix up the references using https://github.com/mozilla/source-map if you could get the column number. (Note that setting the column number to always 0 or always 9999 does not work reliably with mozilla/source-map.)
One way to fix this would be a callback before storing each message, with the message, filename, line, column as parameters, so I could replace the reference with the correct one.