@@ -47,7 +47,7 @@ const AI_DIALOG_TITLE_TEXT_CLASS = 'dx-aidialog-title-text';
4747const ICON_CLASS = 'dx-icon' ;
4848const ICON_SPARKLE_CLASS = 'dx-icon-sparkle' ;
4949const COPY_BUTTON_ICON = 'copy' ;
50- const TRY_AGAIN_BUTTON_ICON = 'restore' ;
50+ const REGENERATE_BUTTON_ICON = 'restore' ;
5151
5252const AI_DIALOG_COMMANDS_WITH_OPTIONS = [ 'translate' , 'changeStyle' , 'changeTone' ] ;
5353
@@ -392,16 +392,17 @@ export default class AIDialog extends BaseDialog<AIDialogResult> {
392392 } ;
393393 }
394394
395- protected _getTryAgainButtonItem ( ) : NamedToolbarItem {
396- const text = isSmallScreen ( ) ? undefined : localizationMessage . format ( 'dxHtmlEditor-aiTryAgain' ) ;
395+ protected _getRegenerateButtonItem ( ) : NamedToolbarItem {
396+ const text = isSmallScreen ( ) ? undefined : localizationMessage . format ( 'dxHtmlEditor-aiRegenerate' ) ;
397+
397398 return {
398- name : 'tryAgain ' ,
399+ name : 'regenerate ' ,
399400 toolbar : 'bottom' ,
400401 location : 'before' ,
401402 widget : 'dxButton' ,
402403 options : {
403404 stylingMode : 'outlined' ,
404- icon : TRY_AGAIN_BUTTON_ICON ,
405+ icon : REGENERATE_BUTTON_ICON ,
405406 text,
406407 onClick : ( ) => this . _retryExecuteAICommand ( ) ,
407408 onInitialized : this . _addEscapeHandler . bind ( this ) ,
@@ -447,7 +448,7 @@ export default class AIDialog extends BaseDialog<AIDialogResult> {
447448
448449 private _getInitialToolbarItems ( ) : NamedToolbarItem [ ] {
449450 return [
450- this . _getTryAgainButtonItem ( ) ,
451+ this . _getRegenerateButtonItem ( ) ,
451452 this . _getCopyButtonItem ( ) ,
452453 this . _getReplaceButtonItem ( ) ,
453454 ] ;
0 commit comments