Oh yes, for sure. I’ve setted up API and webhooks. Do you know if there are limitations to consider at setting the Webhooks secret?
There are no function logs, I’m looking for any debug data to properly enable it. That should enable me to share one of my Ghost blogs here (:
I’d expect to see some logging – even if errors – from the cloud function. Can you see it getting invoked at all? You might want to add some console logging right below const handler = async (event) => {
(line 109 of translator.js), just to confirm the function is getting invoked at all. If it isn’t, then start thinking webhooks aren’t firing, or maybe you’ve got the wrong url for the function.
If you look at your webhooks, do you have a ‘last triggered’ entry for them? Are you seeing any webhook-related errors?
Side note: Right now, I’ve got ‘en’ hard-coded as the source language. If you’re publishing in a different language, you’d need to change that (in translator.js) – each time that deeplClient.translate is invoked, for example:
deeplClient.translateText(title, 'en', targetLang)
1 Like
Thanks, it’s now working 
Now trying to figure out a subdomain proxy to hide those new locale tags and testing a minor edit on the script for selecting the initial language automatically.
Will share my findings.
Oh good! For future reference, what was the problem?