Di Co-op Translator na command-line interface (CLI) tool wey go help you translate all di markdown files and images wey dey your project into plenty languages. Dis tutorial go show you how you go fit configure di translator and use am for different cases.
You fit create virtual environment using pip or Poetry. Type one of di commands wey dey below for your terminal.
python -m venv .venv
poetry init
After you don create di virtual environment, you go need activate am. Di steps dey different based on di operating system wey you dey use. Type di command wey dey below for your terminal.
Windows:
.venv\Scripts\activate
Mac/Linux:
source .venv/bin/activate
If you use Poetry create di environment, type di command wey dey below for your terminal to activate am.
poetry shell
After you don set up and activate your virtual environment, di next step na to install di dependencies wey you need.
Install Co-Op Translator using pip
pip install co-op-translator
Or
Install am using poetry
poetry add co-op-translator
[!NOTE] No try do dis one if you install co-op translator using di quick install.
If you dey use pip, type di command wey dey below for your terminal. E go automatically install di required packages wey dey di requirements.txt file:
pip install -r requirements.txt
If you dey use Poetry, type di command wey dey below for your terminal. E go automatically install di required packages wey dey di pyproject.toml file:
poetry install
Disclaimer:
Dis dokyument don use AI transleto service Co-op Translator do di translation. Even though we dey try make am accurate, abeg make you sabi say machine translation fit get mistake or no correct well. Di original dokyument wey dey for im native language na di main source wey you go fit trust. For important information, e good make professional human transleto check am. We no go fit take blame for any misunderstanding or wrong interpretation wey fit happen because you use dis translation.