detect-translation
This package attempts to detect when a website was translated on the client (using, for example, Google Translate in Chrome) or via a proxy (like using translate.google.com directly).
Installation
yarn add detect-translation
You can use npm if you prefer
The package was written in Typescript, so no need to install types separately.
Example Usage
; observe;
detect-translation
can currently detect the following services:
lang
is the value of the <html>
lang
attribute - this gets set by the translation service.
MIT @ Claudiu Ceia