-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjustments to translation texts and response type
- Loading branch information
1 parent
735d860
commit 1a23302
Showing
7 changed files
with
129 additions
and
29 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
src/Serenity.Extensions/Modules/ServerTypes/Extensions/TranslateTextResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { ServiceRequest } from "@serenity-is/corelib"; | ||
import { ServiceResponse } from "@serenity-is/corelib"; | ||
import { TranslateTextOutput } from "./TranslateTextOutput"; | ||
|
||
export interface TranslateTextResponse extends ServiceRequest { | ||
export interface TranslateTextResponse extends ServiceResponse { | ||
Translations?: TranslateTextOutput[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
.../Translation/DefaultTranslationOptions.cs → ...les/Translation/BaseTranslationOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
namespace Serenity.Extensions; | ||
|
||
[DefaultSectionKey(SectionKey)] | ||
public class DefaultTranslationOptions : IOptions<DefaultTranslationOptions> | ||
public class BaseTranslationOptions | ||
{ | ||
public const string SectionKey = "Translation"; | ||
public bool Enabled { get; set; } | ||
public bool UseStructuredOutput { get; set; } | ||
public int ParallelRequest { get; set; } | ||
public int BatchSize { get; set; } | ||
public DefaultTranslationOptions Value => this; | ||
} |
2 changes: 1 addition & 1 deletion
2
src/Serenity.Extensions/Modules/Translation/TranslateTextResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters