Skip to main content

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


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.1.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

md_translate-0.0.1-py3-none-any.whl (7.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page