gettext-parser icon indicating copy to clipboard operation
gettext-parser copied to clipboard

Option to remove comments from JSON output

Open sabsaxo opened this issue 7 years ago • 5 comments

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

sabsaxo avatar Feb 28 '18 12:02 sabsaxo

Which comments?

smhg avatar Mar 02 '18 16:03 smhg

Closing, but feel free to add feedback when available.

smhg avatar Mar 06 '18 12:03 smhg

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

sabsaxo avatar Mar 06 '18 12:03 sabsaxo

@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!

arm1n avatar Oct 24 '18 14:10 arm1n

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

smhg avatar Nov 04 '18 11:11 smhg