The total limit of characters per request is 10k chars

Hierarchy (View Summary)

Constructors

Properties

apiExtra?: unknown
apiKey?: string
apiUrl: string
apiUrlPlaceholder: string = "https://browser.translate.yandex.net/api/v1/tr.json"
baseLang: string = config.baseLang
fetchOpts: Record<string, unknown>
headers: { "Content-Type": string; "User-Agent": string } = ...
origin: string
originPlaceholder: string = "https://youtube.com"
srv: string = "browser_video_translation"

Methods

  • Parameters

    • params: readonly [string, string][]

    Returns string

  • Parameters

    • body: unknown
    • headers: Record<string, string> = {}
    • method: RequestMethod = "POST"

    Returns {
        body: {};
        headers: {
            "Content-Type": string;
            Origin: string;
            Referer: string;
            "User-Agent": string;
        };
        method: RequestMethod;
    }

  • Parameters

    • params: Record<string, string> = {}

    Returns string