0.0.17 • Published 2 years ago

deepl-cli v0.0.17

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

dpl

Use deepl translation in the CLI.

Demo

image image

Requirement

  • node
  • npm

Installation

npm i -g deepl-cli

Usage

To use this package, you first need to set an API key and Target Language.

Config(Required)

$ dpl setting init

Api Type

pro or free

API Key

API KEY is issued when you register to use deepl api. https://www.deepl.com/pro-api?cta=menu-pro-api/

Target Language

The language into which the text should be translated. Options currently available: https://www.deepl.com/ja/docs-api/translating-text/request/

"BG" - Bulgarian
"CS" - Czech
"DA" - Danish
"DE" - German
"EL" - Greek
"EN-GB" - English (British)
"EN-US" - English (American)
"EN" - English (unspecified variant for backward compatibility; please select EN-GB or EN-US instead)
"ES" - Spanish
"ET" - Estonian
"FI" - Finnish
"FR" - French
"HU" - Hungarian
"IT" - Italian
"JA" - Japanese
"LT" - Lithuanian
"LV" - Latvian
"NL" - Dutch
"PL" - Polish
"PT-PT" - Portuguese (all Portuguese varieties excluding Brazilian Portuguese)
"PT-BR" - Portuguese (Brazilian)
"PT" - Portuguese (unspecified variant for backward compatibility; please select PT-PT or PT-BR instead)
"RO" - Romanian
"RU" - Russian
"SK" - Slovak
"SL" - Slovenian
"SV" - Swedish
"ZH" - Chinese

1. Normal mode

$ dpl "Enter the text you want to translate."
You'll get a translated text back.

2. Interactive mode

$ dpl
> Enter the text you want to translate.
You'll get a translated text back.
> Enter the text you want to translate.
You'll get a translated text back.
...

For Developers

Test

Create a .env in the root file and specify the API_KEY to be used for testing.

.env

API_KEY="XXX"
0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago