transooner 1.1.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global transooner --version 1.1.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 1.1.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=transooner&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package transooner --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Tran-sooner (sooner rather than later), for C# source code documentation, comments, and strings
TranSooner is a .NET Global Tool for translating all the documentation, comments, and strings in a C# codebase.
- This tool was originally created for translating the codebase of DotnetSpider library from Chinese to English.
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 #The API key here is a dummy API key
- Important note: Using Google Translate without an API Key will switch to Google's free Translation API that is provided only for demo purposes and should not be used in commercial and production environments.
Usage options
Option | Description | Default | Optional |
---|---|---|---|
-d, --directory | Directory containing .cs files. | Current working directory | true |
-k, --api-key | Translate API Key. | true | |
-t, --translator | Translator to use (google, deepl). | true | |
-l, --language | Language to translate to. | en-US | true |
-r, --regex | Regex pattern to match text to be translated. | [^\x00-\x7F] | true |
-i, --includes | Glob pattern to include files. | **/*.cs | true |
-e, --excludes | Glob pattern to exclude files. | bin/. obj/. | true |
-c, --capitalize | Capitalize first letter of translated text. | true | true |
-y, --yes | Acknowledge and disable the "Google's free Translation API" usage warning by implicitly answering "yes". | false | true |
-s, --symbols | Preprocessor symbols to use with the C# parser for translating conditional code parts. | no symbols | true |
-n, --no-logo | Skip printing the logo. | false | true |
--no-comments | Skip translating comments. | false | true |
--no-strings | Skip translating strings. | false | true |
--no-documentation | Skip translating documentation. | false | true |
--no-progress | Skip printing progress. | false | true |
--help | Display this help screen. | ||
--version | Display version information. |
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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.