

url: only available for those engines that you can install on your own server (like Libretranslate), allows you to specify a custom endpoint for the translations.key: the API Key for the engine of your choice.engine: a String containing the name of the engine to use for translation.Leave it undefined to cache it indefinitely (until a server/browser restart). cache: a Number with the milliseconds that each translation should be cached.It can be in any of the two ISO 639 (1 or 2) or the full name in English like Spanish. from: the string of the language to translate to.This means you can use Google Translate English to Korean words without the need to type. to: the string of the language to translate to. The Google Translate app also works with audio translations.The key will also turn on/off your keyboard input conversion. Pressing Esc on the Korean keyboard layout will toggle the mouse input between virtual QWERTY keyboard and virtual Korean keyboard. It accepts either a String of the language to translate to or a simple Object with these options: You can use your computer keyboard or mouse to type Korean letters with this online keyboard. Right now only a single string of text is accepted. The first parameter is the string that you want to translate. DEEPL_KEY const text = await translate ( "Hello world", "es" ) console. engine = "deepl" // "google", "yandex", "libre", "deepl" translate. Omit this line if loading form a CDN import translate from "translate" translate.
