4 ms·
There's a much easier way to translate json cat english.json | sed 's/"\([^"]*\)"/«\1»/g' > french.json
by bccdee 2y ago
There's a much easier way to translate json
cat english.json | sed 's/"\([^"]*\)"/«\1»/g' > french.json
- jboschpons 2y agoHey! 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" }
- capitainenemo 2y agoIt was a weak joke btw.