anylang
Version:
A translator's kit that uses the free APIs of Google Translate, Yandex, Bing, ChatGPT, and other LLMs
12 lines (11 loc) • 538 B
TypeScript
import { BaseTranslator } from '../BaseTranslator';
export declare class YandexTranslator extends BaseTranslator {
static readonly translatorName = "YandexTranslator";
static isSupportedAutoFrom(): boolean;
static getSupportedLanguages(): string[];
getLengthLimit(): number;
getRequestsTimeout(): number;
checkLimitExceeding(text: string | string[]): number;
translate(text: string, from: string, to: string): Promise<string>;
translateBatch(text: string[], from: string, to: string): Promise<string[]>;
}