CLI tool to translate markdown files
Project description
MD Translate
CLI to translate .md
files from English to Russian.
Uses Yandex Translation API.
Installation
Get project and install by:
$ git clone git@github.com:ilyachch/docs-trans-app.git
$ cd docs-trans-app
$ ./install.sh
It will check installed Python version, install venv, create venv, load requirements and create file TRANSLATE_API_KEY
with some dummy. There you should put your API Key, you got from Yandex Translate.
Using
To start translation, you should activate venv, by source venv/bin/activate
and then you can use run it by python md_translate.py -p <PATH TO FOLDER>
.
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.
Plans to extend
- Make it translate all needed text blocks, not only paragraphs;
- Make it translate not only "English" -> "Russian";
- Make it translate using not only Yandex Translation API;
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
Built Distribution
Hashes for md_translate-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d0cb377f6183acd829dc8a9df4c7286f97d529f2e7856cb04c21a247282a5b0 |
|
MD5 | fab6efad394986b317f008cb78cf1c6b |
|
BLAKE2b-256 | 32f39df56e3598f32502d08f73268f7ed9d199503620d3381ecbb36ea7b00c27 |