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.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ae5ad6eba4749a3b71de774d03a608c0d1c699a4466a758f23ccc9ed35b7f59 |
|
MD5 | 63693468d785c9083ec684f9173a48e3 |
|
BLAKE2b-256 | 96fa3f2623018288023d1b29199b9fbdfc3bc1c32cc9389d6d7efdd1399e3eed |