{"repo":"iamtraction/google-translate","free":true,"listed":false,"github":"https://github.com/iamtraction/google-translate","clone":"git clone https://github.com/iamtraction/google-translate.git","description":"🈯 A Node.js library to consume Google Translate API for free.","language":"JavaScript","stars":562,"topics":["google-translate","google-translate-api","translate-api","google","translate","api","node","nodejs","javascript","js"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Google Translate API A Node.JS library to consume Google Translate for free. Feature Highlights Automatically detect source language Automatic spelling corrections Automatic language correction Fast and reliable Table of Contents Installation Usage Languages Errors Examples Development Credits, etc Installation Requires Node.js 22.19.0 or later. Usage Method: translate(text, options) Parameter Type Optional Default Description - - - - - text String No - The text you want to translate. options Object - - The options for translating. options.from String Yes 'auto' The language name or code to translate from. If none is given, it will auto detect the source language. options.to String Yes 'en' The language name or code to translate to. If none is given, it will translate to English. options.raw Boolean Yes false If true , it will return the raw output that was received from Google Translate. options.dispatcher Dispatcher Yes - The undici dispatcher to make the request with. Behind a proxy, set HTTP PROXY , HTTPS PROXY and NO PROXY . Pass options.dispatcher to take over entirely. Without either, undici's global dispatcher is used. Returns: Promise Response Object: Key Type Description - - - text String The translated text. from Object - from.language Object - from.language.didYouMean Boolean Whether or not the API suggest a correction in the source language. from.language.iso String The code of the language that the API has recognized in the text. from.text Object - from.text.aut","default_branch":null,"files":null,"tree":[],"storefront":"/r/iamtraction","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/iamtraction/google-translate/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}