You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: