See the version list below for details.
dotnet tool install --global MMlib.Tools.Translator --version 1.2.0
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local MMlib.Tools.Translator --version 1.2.0
nuke :add-package MMlib.Tools.Translator --version 1.2.0
tr is .NET Global text translation tool.
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
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
Set default languages
Default languages can be set by
tr set-defaults -s "en" -t "sk"
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||Versions 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.|
This package has no dependencies.