Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

AILanguages Function

Specifies a collection of languages for Translate and Summarize operations in the Web Document Viewer.

#Declaration

TypeScript
export const AILanguages: DevExpress.Analytics.Internal.IGlobalSubscribableValue<AILanguageInfo[]>

#Parameters

Name Type Description
newVal AILanguageInfo[]

A collection of languages (AILanguageInfo objects).

#Returns

Type
AILanguageInfo[]

#Remarks

Specified languages are available in the Output Language drop-down list in the AI Operations tab and in the Translate context menu item.

Web Document Viewer - Languages Drop-Down List

cshtml
function OnInitializing(e, s) {
    DevExpress.Reporting.Viewer.Settings.AIServicesEnabled(true);
    DevExpress.Reporting.Viewer.Settings.AILanguages([
        { key: 'en', text: 'English' },
        { key: 'es', text: 'Spanish' },
        { key: 'de', text: 'German' }
    ]);
}
See Also