Get the latest tech news
Web Translator API
The Translator interface of the Translator and Language Detector APIs contains all the associated translation functionality, including checking AI model availability, creating a new Translator instance, using it to create a translation, and more.
inputQuota Read only Experimental The input quota available to the browser for generating translations. sourceLanguage Read only Experimental The expected language of the input text to be translated. targetLanguage Read only Experimental The language that the input text will be translated into.
Or read this on Hacker News