Closed OliverJAsh closed 1 year ago
I'm wondering what this looks like in the CLI taking JSON into account. A format command would be useful, but in JSON can/should it be multiline?
Good point. In JSON I guess we would have to use newline characters instead.
FWIW so far my use case for this feature request has always been to format the message without the surrounding JSON.
With #25 in mind I'd like intlc format
to be reserved. Perhaps this could have intlc prettify
, or intlc explode
(where we're sort of exploding interpolations vertically?).
It would be super helpful to have a tool to format / pretty print ICU messages. Currently I have to do this by hand.
Before formatting:
After formatting: