Jeydolen / ParantranzHelper

A help utility to speed up translation of mods for paradox games
1 stars 2 forks source link

Failure at each text to translate without stopping #6

Open NicolasGrosjean opened 7 months ago

NicolasGrosjean commented 7 months ago

When getTranslation in deepl.js return undefined, the helper.js script continue to display all the lines to translate whereas we can do nothing because there is no translation to review.

In addition, I don't see the error

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at parseJSONFromBytes (node:internal/deps/undici/undici:6662:19)
    at successSteps (node:internal/deps/undici/undici:6636:27)
    at node:internal/deps/undici/undici:1236:60
    at node:internal/process/task_queues:140:7
    at AsyncResource.runInAsyncScope (node:async_hooks:203:9)
    at AsyncResource.runMicrotask (node:internal/process/task_queues:137:8)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
NicolasGrosjean commented 7 months ago

In fact the error to see is the Authentification to DeeplL API failed (for some reason DeepL changed my API key ...)