Netor.Translate
1.0.0
dotnet add package Netor.Translate --version 1.0.0
NuGet\Install-Package Netor.Translate -Version 1.0.0
<PackageReference Include="Netor.Translate" Version="1.0.0" />
paket add Netor.Translate --version 1.0.0
#r "nuget: Netor.Translate, 1.0.0"
// Install Netor.Translate as a Cake Addin #addin nuget:?package=Netor.Translate&version=1.0.0 // Install Netor.Translate as a Cake Tool #tool nuget:?package=Netor.Translate&version=1.0.0
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 | Versions 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. |
-
net6.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- Microsoft.Extensions.Http (>= 8.0.1)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- Netor.Extensions.EncryptExtensions (>= 1.0.0)
- System.IO.Pipelines (>= 8.0.0)
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.0 | 162 | 10/31/2024 |