Netor.Translate 1.0.3

dotnet add package Netor.Translate --version 1.0.3
                    
NuGet\Install-Package Netor.Translate -Version 1.0.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Netor.Translate" Version="1.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Netor.Translate" Version="1.0.3" />
                    
Directory.Packages.props
<PackageReference Include="Netor.Translate" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Netor.Translate --version 1.0.3
                    
#r "nuget: Netor.Translate, 1.0.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Netor.Translate@1.0.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Netor.Translate&version=1.0.3
                    
Install as a Cake Addin
#tool nuget:?package=Netor.Translate&version=1.0.3
                    
Install as a Cake Tool

翻译服务中间件
using Netor.Translate;
//添加服务
builder.Services
   .AddTranslate(options => { })
   .UseAliyun(option => {
       option.AccessKey = "";
       option.Secret = "";
       option.RegionId = "cn-hangzhou";
       option.Scene = "general";
   })
   .UseSqlServerCache(options => {
       options.ConnectionString = builder.Configuration.GetConnectionString("DefaultConnection")!;
   });
#访问网站或者接口
通过url 或者header 或者cookies 进行语言切换
默认网站语音为简体中文,世界最特殊的语言,分析简单
如果默认语言需要更换,那么需要配置options.Regex 中的正则表达式

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Netor.Translate:

Package Downloads
Netor.Translate.SqlServerCache

翻译服务缓存中间件 SqlServerCache 实现 builder.Services .AddTranslate(options => { }) .UseAliyun(option => { option.AccessKey = ""; option.Secret = ""; option.RegionId = "cn-hangzhou"; option.Scene = "general"; }) .UseSqlServerCache(options => { options.ConnectionString = builder.Configuration.GetConnectionString("DefaultConnection")!; })

Netor.Translate.Aliyun

翻译服务中间件 aliyun 实现 builder.Services .AddTranslate(options => { }) .UseAliyun(option => { option.AccessKey = ""; option.Secret = ""; option.RegionId = "cn-hangzhou"; option.Scene = "general"; })

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.3 216 3/7/2025
1.0.1 125 1/2/2025
1.0.0 195 10/31/2024

新增翻译的路径,包含了路径的页面则翻译