@deeplx/core
Version:
An unofficial but powerful and easy-to-use yet free DeepL API client for Node.js using [DeepL](https://www.deepl.com) by porting [OwO-Network/DeepLX](https://github.com/OwO-Network/DeepLX).
10 lines (9 loc) • 379 B
TypeScript
import type { SourceLanguage, TargetLanguage } from './constants.ts';
export interface TranslateOptions {
dlSession?: string;
proxyUrl?: string;
signal?: AbortSignal;
skipWarm?: boolean;
cookies?: string;
}
export declare const translate: (text: string, targetLang: TargetLanguage, sourceLang?: SourceLanguage, options?: TranslateOptions) => Promise<string>;