Netor.Translate
翻译服务中间件 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 中的正则表达式
Activity
- Latest release
- 1y ago
- Total releases
- 3
- Cadence
- ~2 months
- Last 12 months
- 0
Details
- First release
- Oct 31, 2024
| Version | Released | |
|---|---|---|
1.0.3
patch
|
1.0.3
patch
Dependencies (5)
|
|
1.0.1
patch
|
1.0.1
patch
Dependencies (5)
|
|
1.0.0
initial
|
1.0.0
initial
Dependencies (5)
|