AIReportingConfigurationBuilder.AddTranslation(Action<AITranslationConfigurationBuilder>) Method
Activates AI-powered content translation functionality in Blazor Report Viewer.
Namespace: DevExpress.AIIntegration.Blazor.Reporting.Viewer.Extensions
Assembly: DevExpress.AIIntegration.Blazor.Reporting.Viewer.v25.1.dll
NuGet Package: DevExpress.AIIntegration.Blazor.Reporting.Viewer
Declaration
public AIReportingConfigurationBuilder AddTranslation(
Action<AITranslationConfigurationBuilder> configure
)
Parameters
Name | Type | Description |
---|---|---|
configure | Action<AITranslationConfigurationBuilder> | An Action<T> delegate method that allows you to configure AI-powered content translation functionality in Blazor Report Viewer. |
Returns
Type | Description |
---|---|
AIReportingConfigurationBuilder | An DevExpress.AIIntegration.Blazor.Reporting.Viewer.Extensions.AIReportingConfigurationBuilder object that can be used to further configure the AI-powered functionality in Blazor Report Viewer. |
Remarks
The following code activates the Translate action in the AI Operations tab and Translate and Translate Inline quick actions:
// ...
builder.Services.AddDevExpressAI((config) => {
config.AddBlazorReportingAIIntegration(cfg =>
cfg.AddTranslation(translateOptions =>
translateOptions.SetLanguages(new List<LanguageInfo> {
new LanguageInfo { Text = "German", Id = "de-DE" },
new LanguageInfo { Text = "Spanish", Id = "en-ES" }
})
.EnableTranslation()
.EnableInlineTranslation())
);
});
The following image shows Blazor Report Viewer with activated AI-powered summarization functionality: