| @@ -1,5 +1,6 @@ | ||
| 1 | 1 | import { UpdateSettingConfirm } from '@agent/workflows/settings/components/UpdateSettingConfirm'; |
| 2 | +import { __ } from '@wordpress/i18n'; | |
| 2 | 3 | |
| 3 | 4 | const { abilities } = window.extAgentData; |
| 4 | 5 | |
| 5 | 6 | export const allowedSettings = [ |
| @@ -14,5 +15,15 @@ | ||
| 14 | 15 | export default { |
| 15 | 16 | available: () => abilities?.canEditSettings, |
| 16 | 17 | id: 'edit-wp-setting', |
| 17 | 18 | whenFinished: { component: UpdateSettingConfirm }, |
| 19 | + example: { | |
| 20 | + text: __('Change website title', 'extendify-local'), | |
| 21 | + agentResponse: { | |
| 22 | + // translators: The agent asks this, then waits for the user to type their new site title. | |
| 23 | + reply: __( | |
| 24 | + 'What would you like your new website title to be?', | |
| 25 | + 'extendify-local', | |
| 26 | + ), | |
| 27 | + }, | |
| 28 | + }, | |
| 18 | 29 | }; |