0.1.3 • Published 7 months ago

@deeplx/cli v0.1.3

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

@deeplx/cli

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

The cli for @deeplx/core, a 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/cli

# pnpm
pnpm add @deeplx/cli

# yarn
yarn add @deeplx/cli

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.

Help

deeplx -h
Usage: deeplx [options]

The cli for [`@deeplx/core`](https://github.com/un-ts/deeplx/blob/master/packages/@deeplx/core).

Options:
  -V, --version        output the version number
  -s, --source <text>  Source language of your text
  -t, --target <text>  Target language of your desired text
  --text <text>        Text to be translated
  -f, --file <path>    File to be translated
  --formal [boolean]   Whether to use formal (true) or informal (false) tone in translation. Default `undefined` respects source text tone.
  --no-formal
  -h, --help           display help for command

Example 1

This will translate a Spanish (ES) text into Russian (RU):

deeplx -t russian --text "¡Buenos días!"
Доброе утро!

Example 2

This will translate the file (test.txt) text from Italian (IT) into Portuguese (PT):

deeplx -t PT -f test.txt

Example 3

This will translate a Spanish (ES) text into Russian (RU) in formal tone:

deeplx -t RU --text "¿Cómo te llamas?" --formal
Как Вас зовут?

Note: informal would be "Как тебя зовут?"

Example 4

This will translate a Japanese (JA) text into German (DE) in informal tone:

deeplx -t DE --text "お元気ですか?" --no-formal
Wie geht es dir?

Note: formal would be "Wie geht es Ihnen?"

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