transooner 0.9.0

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global transooner --version 0.9.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 transooner --version 0.9.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=transooner&version=0.9.0
nuke :add-package transooner --version 0.9.0

Tran-sooner (sooner rather than later), for C# source code documentations, comments, and strings

TranSooner is a .NET Global Tool for translating all the documentations, comments, and strings in a C# codebase.

Installation

dotnet tool install -g transooner
  • This tool relies on .NET 8.0

Usage example

transooner -d /Users/sojaner/Git/GitHub/DotnetSpider -k AIzaSyD-7kgBVqzyJb0e6k3yvh1PEw0F42xS4T8 -t google -s Debug
  • This tool was originally created for translating the codebase of DotnetSpider library from Chinese to English.

Usage options

Option Description Default
-d, --directory Directory containing .cs files. Current working directory
-k, --api-key Google Translate API Key.
-t, --translator Translator to use (google, deepl). google
-l, --language Language to translate to. en-US
-r, --regex Regex pattern to match comments to be translated. [^\x00-\x7F]
-i, --includes Glob pattern to include files. **/*.cs
-e, --excludes Glob pattern to exclude files. bin/. obj/.
-c, --capitalize Capitalize first letter of translated comments. true
-y, --yes Acknowledge and disable the "Google's free Translation API" usage warning by implicitly answering "yes". false
-s, --symbols Preprocessor symbols to use with the C# parser for translating conditional code parts. no symbols
-n, --no-logo Skip printing the logo. false
--no-comments Skip translating comments. false
--no-strings Skip translating strings. false
--no-documentations Skip translating documentation comments. false
--no-progress Skip printing progress. false
--help Display this help screen.
--version Display version information.
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.2.5 149 3/22/2024
1.2.0 133 3/21/2024
1.1.0 129 3/21/2024
1.0.0 127 3/20/2024
0.9.9 124 3/20/2024
0.9.5 94 3/20/2024
0.9.1 121 3/20/2024
0.9.0 85 3/20/2024