diff --git a/scripts/extensions/ai-widget/src/translations/translations-body.tsx b/scripts/extensions/ai-widget/src/translations/translations-body.tsx index cefc089213..dda068534f 100644 --- a/scripts/extensions/ai-widget/src/translations/translations-body.tsx +++ b/scripts/extensions/ai-widget/src/translations/translations-body.tsx @@ -118,7 +118,11 @@ export default class TranslationsBody extends React.Component { ariaValue={gettext('Copy')} icon="copy" onClick={() => { - navigator.clipboard.writeText(translation); + const clipboardItem = new ClipboardItem( + {'text/html': new Blob([translation], {type: 'text/html'})}, + ); + + navigator.clipboard.write([clipboardItem]); }} /> {this.props.mode === 'current' && (