Skip to main content
All docs
V25.2
  • 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.2.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 translation functionality:

    Blazor Report Viewer -- AI-powered Translation Functionality

    The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AddTranslation(Action<AITranslationConfigurationBuilder>) method.

    Note

    The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

    See Also