MMlib.Tools.Translator 1.3.1

dotnet tool install --global MMlib.Tools.Translator --version 1.3.1
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 MMlib.Tools.Translator --version 1.3.1
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=MMlib.Tools.Translator&version=1.3.1
nuke :add-package MMlib.Tools.Translator --version 1.3.1

MMLib.Tools.Translator

tr is .NET Global text translation tool.

Installation

tr is implemented as a .NET Core Global Tool, so its installation is quite simple:

dotnet tool install -g MMlib.Tools.Translator

To update it to the latest version, if it was installed previously, use:

dotnet tool update -g MMlib.Tools.Translator

Usage

tr "Hello this is .NET Global text translation tool" -s en -t sk

--source-language (-s) and --target-language (-t) are optional. Default values are from user environment variables MMLIB_TRANSLATOR_SOURCE_LNG and MMLIB_TRANSLATOR_TARGET_LNG.

Set default languages

Default languages can be set by set-defaults command.

tr set-defaults -s "en" -t "sk"

Reverse

Mostly a person needs to translate between two languages. If you have the default source and target language set and you want to do the translation just the other way around, you can use the --reverse (-re) parameter.

tr "Ahoj svet" -re

🙏 @satano thanks for the idea.

Copy to clipboard

If you need to copy the resulting translated text to the clipboard, you can use the --copy-to-clipboard (-co) parameter.

tr "Hello this is .NET Global text translation tool" --copy-to-clipboard
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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.3.1 368 10/8/2021
1.3.0 303 10/8/2021
1.2.0 294 10/6/2021
1.1.0 281 10/6/2021
1.0.0 304 10/6/2021