allowUnsafeEval
allowUnsafeEval: boolean
Optional
apiExtra
apiExtra?: unknown
Optional
apiKey
apiKey?: string
apiUrlPlaceholder
apiUrlPlaceholder: string
fetch
fetch: FetchFunction
fetchOpts
fetchOpts: Record<string, unknown>
headers
headers: { "Content-Type": string; "User-Agent": string }
NANO_DIFF
NANO_DIFF: number
ocrUrl
ocrUrl: string = "https://translate.yandex.net"
originPlaceholder
originPlaceholder: string
Optional
session
session?: Session
sessionUrl
sessionUrl: string
translateLang
translateLang: string
withTranslate
withTranslate: boolean
If you don't want to use the classic fetch
Example