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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file md_translate-0.0.1.tar.gz.

File metadata

  • Download URL: md_translate-0.0.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for md_translate-0.0.1.tar.gz
Algorithm Hash digest
SHA256 bdf787b2d1bc3c4fab107f2bf757ec27477443438c9d82bda3e3dfdbe88b3620
MD5 e0c905b727c86bece3128976b76b467b
BLAKE2b-256 28b3fa61f363f4cd4d0f828121aa190ea865a06cc3dd68b5185401fb71090952

See more details on using hashes here.

File details

Details for the file md_translate-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: md_translate-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for md_translate-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2ae5ad6eba4749a3b71de774d03a608c0d1c699a4466a758f23ccc9ed35b7f59
MD5 63693468d785c9083ec684f9173a48e3
BLAKE2b-256 96fa3f2623018288023d1b29199b9fbdfc3bc1c32cc9389d6d7efdd1399e3eed

See more details on using hashes here.

Supported by

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