TypeError: Failed to fetch at googleTranslateApi

Hello, I have a problem with the Google Translate API. I have written the correct code, I have done everything I need to, but it doesn't translate on the page, and I encounter this error in assets.js:35 TypeError: Failed to fetch at googleTranslateApi (assets.js:5:10) at HTMLButtonElement.<anonymous>. The error refers to point 5 'return fetch(url, { method: 'GET' })' and point 26 here 'googleTranslateApi(content, { to: targetLang })'. I don't know how to solve this, is it a problem with the Google Translate API or something else?

0 1 158
1 REPLY 1

This forum is specific to the Apigee, API Management product. Maybe the AI/ML Forum is a better place for your question