Hacker News new | ask | show | jobs
by bccdee 709 days ago
There's a much easier way to translate json

    cat english.json | sed 's/"\([^"]*\)"/«\1»/g' > french.json
1 comments

Hey!

Good approach, but I want to translate the strings on the JSON file from some source language (spanish for me) into any destination language.

So the JSON may be:

{ "hello": "Hola" }

If the destination language is "English" the result must be:

{ "hello": "Hello" }

It was a weak joke btw.