json-autotranslate
json-autotranslate copied to clipboard
Can't create new language
When I try to add a new language, I get the error "Unexpected end of JSON input".
I have an English source and a German translation in en.json and de.json files. Running the following command works fine. When I modify a string in English, it updates it in German.
npx json-autotranslate -i src/localization/locales --directory-structure ngx-translate -s deepl-free -c abc:fx
Now I want a slovakian translation. I created an empty sk.json file and ran the command again, resulting in the Unexpected end of JSON input
error. When I add {}
to the sk.json file, it gets a bit further but results in An error has occurred: Expected identifier but "{" found.
.
Am I doing something wrong? How do I add a new language?