Duotify.MarkdownTranslator 1.5.0

dotnet tool install --global Duotify.MarkdownTranslator --version 1.5.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local Duotify.MarkdownTranslator --version 1.5.0
This package contains a .NET tool you can call from the shell/command line.
#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

  1. Install latest version of .NET Runtime

  2. Install this tool

    dotnet tool install --global Duotify.MarkdownTranslator
    

Usage

  1. 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'
    
  2. 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
1.5.0 130 1/23/2024
1.4.1 200 12/21/2023
1.4.0 169 12/21/2023
1.3.1 231 4/5/2023
1.3.0 196 4/5/2023
1.2.5 317 3/23/2023
1.2.4 282 3/23/2023
1.2.3 249 3/23/2023
1.2.2 284 3/23/2023
1.2.1 256 3/23/2023
1.2.0 266 3/7/2023
1.1.3 245 3/7/2023
1.1.2 251 3/6/2023
1.1.0 256 3/6/2023
1.0.6 294 3/6/2023
1.0.5 224 3/6/2023
1.0.4 240 3/6/2023
1.0.3 219 3/6/2023
1.0.2 225 3/6/2023
1.0.1 190 3/6/2023
1.0.0 226 3/6/2023