Skip to content

su-u/deepl-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deepl-api

A deelpAPI wrapper available in typescript

Install

npm

npm install deepl-api

yarn

yarn add deepl-api

Use

import { translate } from 'deepl-api';

const response = await translate({
  text: 'Hello',
  target_lang: 'JA',
  auth_key: 'authkey',
})

console.log(response.data);

response.data

{
  "translations": [
    {
      "detected_source_language": "EN",
      "text": "こんにちは"
    }
  ]
}

see