json-autotranslate icon indicating copy to clipboard operation
json-autotranslate copied to clipboard

Can't create new language

Open fletchgqc opened this issue 9 months ago • 1 comments

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?

fletchgqc avatar May 15 '24 09:05 fletchgqc