| @@ -1,5 +1,6 @@ | ||
| 1 | 1 | import { UpdateSiteIconConfirm } from '@agent/workflows/theme/components/UpdateSiteIconConfirm'; |
| 2 | +import { __ } from '@wordpress/i18n'; | |
| 2 | 3 | |
| 3 | 4 | const { abilities } = window.extAgentData; |
| 4 | 5 | |
| 5 | 6 | export default { |
| @@ -6,6 +7,23 @@ | ||
| 6 | 7 | available: () => abilities?.canEditSettings && abilities?.canUploadMedia, |
| 7 | 8 | id: 'update-site-icon', |
| 8 | 9 | whenFinished: { |
| 9 | 10 | component: UpdateSiteIconConfirm, |
| 11 | + }, | |
| 12 | + example: { | |
| 13 | + text: __('Change website browser icon', 'extendify-local'), | |
| 14 | + agentResponse: { | |
| 15 | + // translators: This message shows above a UI where the user can upload or replace their browser icon (favicon). | |
| 16 | + reply: __( | |
| 17 | + 'Below you can upload or replace your website browser icon.', | |
| 18 | + 'extendify-local', | |
| 19 | + ), | |
| 20 | + whenFinishedTool: { | |
| 21 | + id: 'update-site-icon', | |
| 22 | + labels: { | |
| 23 | + confirm: __('Updated the site icon', 'extendify-local'), | |
| 24 | + cancel: __('Canceled the site icon update', 'extendify-local'), | |
| 25 | + }, | |
| 26 | + }, | |
| 27 | + }, | |
| 10 | 28 | }, |
| 11 | 29 | }; |