translate - v1.0.8
    Preparing search index...

    Translate limit is 2k chars Detect limit is 1k chars

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    allowUnsafeEval: boolean
    apiExtra?: unknown
    apiKey?: string
    apiUrl: string
    apiUrlPlaceholder: string = "https://cloud.yandex.ru/api/translate"
    baseLang: string = config.baseLang
    fetchOpts: Record<string, unknown>
    headers: { "Content-Type": string; "User-Agent": string } = ...
    origin: string
    originPlaceholder: string = "https://cloud.yandex.ru"

    Methods

    • Parameters

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

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