AILanguages Function
Specifies a collection of languages for Translate and Summarize operations in the Web Document Viewer.
Declaration
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.
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