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
I was hoping to write a quick script to get some stats about our i18n keys, but there seems to be a bug in the --format option: I can't seem to get i18n-tasks to give me data I can process very easily. For example:
$ i18n-tasks data --format json
#StandWithUkraine
{"en":{"foo":"bar"},"es":{"baz":"qux"}}
It's not my intention to make a political statement, but this simply isn't valid json: jq barfs on it with "parse error: Invalid numeric literal at line 1, column 8". Both lines are printed to stdout, so it's not trivial to filter out non-json, requiring other workarounds. Any chance we could remove this when using the --format option?
The text was updated successfully, but these errors were encountered:
Hmm... yeah this still requires workarounds for my use-case. Either I need to filter out stderr when running the command in the container (which isn't great, really-- I'd like to see errors), or I need to make sure all my tooling is set up on this particular container, which isn't something I was planning on doing. Any chance this is something you'd consider?
This is a Docker bug, not an i18n-taska one, but good news is that it seems you can simply drop the -t flag from your docker run command. moby/moby#725 (comment)
I was hoping to write a quick script to get some stats about our i18n keys, but there seems to be a bug in the
--format
option: I can't seem to get i18n-tasks to give me data I can process very easily. For example:It's not my intention to make a political statement, but this simply isn't valid json: jq barfs on it with "parse error: Invalid numeric literal at line 1, column 8". Both lines are printed to stdout, so it's not trivial to filter out non-json, requiring other workarounds. Any chance we could remove this when using the
--format
option?The text was updated successfully, but these errors were encountered: