A tool to translate markdown files using GPT-4
Project description
gpt_translate
This is a tool to translate the language in Markdown files.
You will need and OpenAI API key to use this tool.
Installation
You have to clone the repo and then do:
$ cd gpt_translate
$ pip install .
Usage
We use GPT4 by default. You can change this on configs/model_config.yaml
You can add new languages by providing the language translation dictionaries in
configs/language_dicts
To translate a single file:
$ gpt_translate.file README.md README_es_.md --language es
to translate a full folder recursively:
$ gpt_translate.folder docs docs_ja --language ja
If you don't know what to do, you can always do:
$ gpt_translate --help
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
gpt_translate-0.8.4.tar.gz
(7.0 kB
view hashes)
Built Distribution
Close
Hashes for gpt_translate-0.8.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae4ac1b6ecf40e84a5dffe5bf194156d315587bbc538ceb7111c8c4a7f4aade7 |
|
MD5 | 706c5b23e8e2a68a6293d44410d41c64 |
|
BLAKE2b-256 | 0451c20efb48671fe4acd055cfb292f2f5e9858369082800aa4b0ccd90fb81cf |