From 7ab9d899e4de0aa2b4fa3a1950a4093fe384fabd Mon Sep 17 00:00:00 2001 From: Keith Grant Date: Mon, 31 Aug 2020 13:50:55 -0700 Subject: [PATCH] mark text for translation --- .../shared/CustomMessagesSubForm.jsx | 52 ++++++++++--------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/awx/ui_next/src/screens/NotificationTemplate/shared/CustomMessagesSubForm.jsx b/awx/ui_next/src/screens/NotificationTemplate/shared/CustomMessagesSubForm.jsx index 9387a84a39..ede9ac1d79 100644 --- a/awx/ui_next/src/screens/NotificationTemplate/shared/CustomMessagesSubForm.jsx +++ b/awx/ui_next/src/screens/NotificationTemplate/shared/CustomMessagesSubForm.jsx @@ -1,7 +1,7 @@ import 'styled-components/macro'; import React, { useEffect, useRef } from 'react'; import { withI18n } from '@lingui/react'; -import { t } from '@lingui/macro'; +import { t, Trans } from '@lingui/macro'; import { useField, useFormikContext } from 'formik'; import { Switch, Text } from '@patternfly/react-core'; import { @@ -69,30 +69,32 @@ function CustomMessagesSubForm({ defaultMessages, type, i18n }) { css="margin-bottom: var(--pf-c-content--MarginBottom)" > - Use custom messages to change the content of notifications sent - when a job starts, succeeds, or fails. Use curly braces to access - information about the job:{' '} - - {'{{'} job_friendly_name {'}}'} - - ,{' '} - - {'{{'} url {'}}'} - - , or attributes of the job such as{' '} - - {'{{'} job.status {'}}'} - - . You may apply a number of possible variables in the message. - Refer to the{' '} - - Ansible Tower documentation - {' '} - for more details. + + Use custom messages to change the content of notifications sent + when a job starts, succeeds, or fails. Use curly braces to + access information about the job:{' '} + + {'{{'} job_friendly_name {'}}'} + + ,{' '} + + {'{{'} url {'}}'} + + , or attributes of the job such as{' '} + + {'{{'} job.status {'}}'} + + . You may apply a number of possible variables in the message. + Refer to the{' '} + + Ansible Tower documentation + {' '} + for more details. +