unsplash / intlc

Compile ICU messages into code. Supports TypeScript and JSX. No runtime.
MIT License
56 stars 2 forks source link

`intlc prettify` isn't working #189

Closed OliverJAsh closed 1 year ago

OliverJAsh commented 1 year ago

I’m trying to use intlc prettify for the first time. I’m copying the example in the PR https://github.com/unsplash/intlc/pull/173. I get this error:

$ pbpaste > x.json

$ intlc prettify $(cat x.json | jq -r .x.message)
Invalid argument `boolean,'

Usage: intlc COMMAND
  Compile ICU messages into code.
OliverJAsh commented 1 year ago

I was missing quotes:

intlc prettify "$(cat x.json | jq -r .x.message)"