Duotify.MarkdownTranslator
1.5.0
dotnet tool install --global Duotify.MarkdownTranslator --version 1.5.0
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local Duotify.MarkdownTranslator --version 1.5.0
#tool dotnet:?package=Duotify.MarkdownTranslator&version=1.5.0
nuke :add-package Duotify.MarkdownTranslator --version 1.5.0
Duotify.MarkdownTranslator
This tool can translate any Markdown document from the internet into ANY LANGUAGE using OpenAI ChatGPT API (gpt-3.5-turbo
) or Azure OpenAI Service (AOAI) or Google's Gemini Pro API.
By default, we translate Markdown document into Traditional Chinese.
Installation
Install latest version of .NET Runtime
Install this tool
dotnet tool install --global Duotify.MarkdownTranslator
Usage
Setup your OpenAI API Key
PowerShell
$env:OPENAI_API_KEY = 'YOUR_KEY_HERE';
If you're going to use AOAI, please configure the following required environment variables.
PowerShell
$env:AOAI_API_KEY = 'YOUR_KEY_HERE' $env:AOAI_API_BASE='https://{name}.openai.azure.com' $env:AOAI_DEPLOYMENT_ID='YOUR_DEPLOYMENT_ID'
If you're going to use Gemini Pro, please create a new API key from Google AI Studio and configure the following required environment variable.
PowerShell
$env:GEMINI_API_KEY = 'YOUR_KEY_HERE'
Run translation for specific Markdown document
mdt {MarkdownURL}
e.g.
mdt https://github.com/ErikEJ/EFCorePowerTools/blob/master/README.md
The translated *.md file will save to a TEMP folder with filename postfix with
.translated.md
. If you assign-o
or--output
argument, the translated file will write to this path.mdt README.md
The translated *.md file will save to the same folder of the file with filename postfix with
.translated.md
. If you assign-o
or--output
argument, the translated file will write to this path.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
This package has no dependencies.
Version | Downloads | Last updated |
---|---|---|
1.5.0 | 209 | 1/23/2024 |
1.4.1 | 254 | 12/21/2023 |
1.4.0 | 229 | 12/21/2023 |
1.3.1 | 274 | 4/5/2023 |
1.3.0 | 233 | 4/5/2023 |
1.2.5 | 338 | 3/23/2023 |
1.2.4 | 303 | 3/23/2023 |
1.2.3 | 274 | 3/23/2023 |
1.2.2 | 327 | 3/23/2023 |
1.2.1 | 276 | 3/23/2023 |
1.2.0 | 295 | 3/7/2023 |
1.1.3 | 283 | 3/7/2023 |
1.1.2 | 268 | 3/6/2023 |
1.1.0 | 295 | 3/6/2023 |
1.0.6 | 332 | 3/6/2023 |
1.0.5 | 238 | 3/6/2023 |
1.0.4 | 276 | 3/6/2023 |
1.0.3 | 250 | 3/6/2023 |
1.0.2 | 240 | 3/6/2023 |
1.0.1 | 221 | 3/6/2023 |
1.0.0 | 256 | 3/6/2023 |