mark text for translation

This commit is contained in:
Keith Grant
2020-08-31 13:50:55 -07:00
parent c700d07a0a
commit 7ab9d899e4

View File

@@ -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,9 +69,10 @@ function CustomMessagesSubForm({ defaultMessages, type, i18n }) {
css="margin-bottom: var(--pf-c-content--MarginBottom)"
>
<small>
<Trans>
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:{' '}
when a job starts, succeeds, or fails. Use curly braces to
access information about the job:{' '}
<code>
{'{{'} job_friendly_name {'}}'}
</code>
@@ -93,6 +94,7 @@ function CustomMessagesSubForm({ defaultMessages, type, i18n }) {
Ansible Tower documentation
</a>{' '}
for more details.
</Trans>
</small>
</Text>
<FormFullWidthLayout>