0.1.3 • Published 6 months ago

@deeplx/core v0.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

@deeplx/core

GitHub Actions Workflow Status Codecov Codacy Grade type-coverage CodeRabbit Pull Request Reviews npm GitHub Release

Conventional Commits Renovate enabled JavaScript Style Guide Code Style: Prettier changesets

An unofficial but powerful and easy-to-use yet free DeepL API client for Node.js using DeepL by porting OwO-Network/DeepLX.

TOC

Online Service

https://deeplx.vercel.app/translate

Installation

# npm
npm i @deeplx/core

# pnpm
pnpm add @deeplx/core

# yarn
yarn add @deeplx/core

Usage

Supported languages

Currently the following languages are supported:

AbbreviationLanguageWriting in own language
BGBulgarianБългарски
ZHChinese中文
CSCzechČesky
DADanishDansk
NLDutchNederlands
ENEnglishEnglish
ETEstonianEesti
FIFinnishSuomi
FRFrenchFrançais
DEGermanDeutsch
ELGreekΕλληνικά
HUHungarianMagyar
ITItalianItaliano
JAJapanese日本語
LVLatvianLatviešu
LTLithuanianLietuvių
PLPolishPolski
PTPortuguesePortuguês
RORomanianRomână
RURussianРусский
SKSlovakSlovenčina
SLSlovenianSlovenščina
ESSpanishEspañol
SVSwedishSvenska
UKUkrainianУкраїнська Мова

You can either input the abbreviation or the language written in english.

Example 1

This will translate a Chinese (ZH) text into Dutch (NL):

import { translate } from '@deeplx/core'

await translate('你好', 'NL')
'Hallo'

Example 2

This will translate a danish text into german in informal tone:

import { translate } from '@deeplx/core'

await translate('Ring til mig!', 'german', 'danish', false)
'Ruf mich an!'

Sponsors and Backers

Sponsors and Backers

Sponsors

1stGRxTSUnTS
1stG Open Collective sponsorsRxTS Open Collective sponsorsUnTS Open Collective sponsors

Backers

1stGRxTSUnTS
1stG Open Collective backersRxTS Open Collective backersUnTS Open Collective backers

Changelog

Detailed changes for each release are documented in CHANGELOG.md.

License

MIT © JounQin@1stG.me