lingva-scraper-update
Version:
Google Translate scraper for Lingva Translate
10 lines (9 loc) • 487 B
TypeScript
import { LangCode } from "./utils/language";
/**
* Retrieves the translation given a pair of languages and a query
* @param source - The code of the language to translate from
* @param target - The code of the language to translate to
* @param query - The text to be translated
* @returns A single {@link string} with the translated text
*/
export declare const getTranslationText: (source: LangCode<"source">, target: LangCode<"target">, query: string) => Promise<string | null>;