Machine Translation (MT)

There are two types of MT in VNTranslator:

  1. Machine Translation via Web Scraping in Web Browser

  2. Machine Translation via API using GET/POST methods


1. Web Scraping in Web Browser

Machine translations using this method include Google Lite, Google Web, DeepL Web, Bing, Papago, and others.

In this section, I will explain in detail the common issues related to Translation Timeout.

Translation Timeout occurs when the DOM API cannot find a match on the website within the specified time limit.

By default, the Timeout for translation requests is 10.000 ms (10 seconds)

1.1 Unstable Connection

An unstable connection can cause the webpage to fail to load properly

1.2 Client IP Blocked / Too Many Requests

This issue often arises if there are too many requests or the requests are sent too quickly.

  • Clear cookies & site data in VNTranslator

  • Set up and use a VPN

By default, the request delay is set to 50ms, but you can increase this delay to 100ms - 500ms if this issue frequently occurs.

Based on my testing:

  • DeepL Web will not respond if requests exceed 1600 per hour

  • Google Lite / Google Web will display a captcha if requests exceed 1250 per minute

  • Complete the captcha verification and accept/reject the cookie banner in the Browser Window

1.4 Website Updated

If the website has been updated, the script in VNTranslator may need to be updated.

You can check this in the Browser Window when the page loads. If the text is translated correctly but VNTranslator still shows a Translation Timeout, it is likely that the website structure has been updated.

  • For the PRO version, check for machine translation updates in the Settings (Go to Settings -> MT Engines -> Updates)

  • For the public version, check on Discord in the #custom-mt channel for translator updates


2. API

DeepL API Free/Pro

Google API

OpenAI API

Last updated