CLI tool to translate markdown files
Project description
MD Translate
CLI tool to translate .md
files from English to Russian.
Can use Yandex Translation API and Google Cloud translation.
Installation
Install project:
$ pip install md-translate
Create a file, named .md_translate_api_key
in your home folder or wherever you want put your API key into it.
Using
To run translation:
$ md-translate path_to_folder_with_md_files
Arguments:
-k (--api_key) path_to_api_key_file
(if you put api key file not to home folder)-s (--service) [Yandex, Google]
service to be used for translation-S (--source_lang) land_code
language code of source document (default: 'en')-T (--target_lang) lang_code
language code to translate in (default: 'ru')
It will find all .md
files in folder you set and line by line, will translate. It will translate only paragraphs, not lists or any other markdown constructions.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
md_translate-0.0.5.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for md_translate-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e65f52118b562d1c781dd3763801b442e1f64f86b3f45eefe5f1de2a4606445 |
|
MD5 | e04524e9ff79203d8bcd7e27917093ab |
|
BLAKE2b-256 | 7320be2471829dbe74eee96189143eb748f4931172696ee71de9d3e722cf2936 |