smhg / gettext-parser

Parse and compile gettext po and mo files, nothing more, nothing less
MIT License
158 stars 44 forks source link

Option to remove comments from JSON output #40

Open sabsaxo opened 6 years ago

sabsaxo commented 6 years ago

I'd like to get rid of the 'comments' ... how can I do that?

smhg commented 6 years ago

Which comments?

smhg commented 6 years ago

Closing, but feel free to add feedback when available.

sabsaxo commented 6 years ago

Thanks, found my way around it. The object just seemed bloated ...

arm1n commented 5 years ago

@smhg Hey there, I wanted to ask the same question - it would be nice to make some output in the JSON files optional. I know that it's used for porting it back to the PO references, but in our case we are using the JSON files to be loaded by our web application and comments are doubling the size of the files, which are large anyways when having a large code base. Do you think this could be added as an option? This would be nice, otherwise we have to postprocess the output, which is rather unefficient - thanks!

smhg commented 5 years ago

Would switching off all comments be ok? So you wouldn't get the source file and line number either. Edit: pinging @arm1n @sabsaxo