cat english.json | sed 's/"\([^"]*\)"/«\1»/g' > french.json
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" }
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" }