Skip to content

Commit

Permalink
address copy feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonelizabeth committed Sep 3, 2020
1 parent 5c81eee commit ac11798
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,19 @@ export const ConstantKeywordType: FunctionComponent<Props> = ({ field }) => {
{/* Meta field */}
<EditFieldFormRow
title={i18n.translate('xpack.idxMgmt.mappingsEditor.constantKeyword.metaFieldTitle', {
defaultMessage: 'Set meta',
defaultMessage: 'Set metadata',
})}
description={i18n.translate(
'xpack.idxMgmt.mappingsEditor.constantKeyword.metaFieldDescription',
{
defaultMessage: 'Arbitrary information about the field. Specify as JSON key-value pairs.',
defaultMessage:
'Arbitrary information about the field. Specify as JSON key-value pairs.',
}
)}
defaultToggleValue={field.source?.meta !== undefined}
docLink={{
text: i18n.translate('xpack.idxMgmt.mappingsEditor.constantKeyword.metaDocLinkText', {
defaultMessage: 'Meta documentation',
defaultMessage: 'Metadata documentation',
}),
href: documentationService.getMetaLink(),
}}
Expand All @@ -68,7 +69,7 @@ export const ConstantKeywordType: FunctionComponent<Props> = ({ field }) => {
'aria-label': i18n.translate(
'xpack.idxMgmt.mappingsEditor.constantKeyword.metaFieldAriaLabel',
{
defaultMessage: '_meta field data editor',
defaultMessage: 'metadata field data editor',
}
),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const TYPE_DEFINITION: { [key in DataType]: DataTypeDefinition } = {
<p>
<FormattedMessage
id="xpack.idxMgmt.mappingsEditor.dataType.constantKeywordLongDescription"
defaultMessage="Constant keyword fields support the same queries and aggregations as {keyword} fields, but take advantage of the fact that all documents have the same value per index."
defaultMessage="Constant keyword fields are a special type of keyword fields for fields that contain the same keyword across all documents in the index. Supports the same queries and aggregations as {keyword} fields."
values={{
keyword: <EuiCode inline>{'keyword'}</EuiCode>,
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ export const PARAMETERS_DEFINITION: { [key in ParameterName]: ParameterDefinitio
fieldConfig: {
defaultValue: '',
label: i18n.translate('xpack.idxMgmt.mappingsEditor.parameters.metaLabel', {
defaultMessage: 'Meta',
defaultMessage: 'Metadata',
}),
helpText: (
<FormattedMessage
Expand All @@ -433,7 +433,7 @@ export const PARAMETERS_DEFINITION: { [key in ParameterName]: ParameterDefinitio
{
validator: isJsonField(
i18n.translate('xpack.idxMgmt.mappingsEditor.parameters.metaFieldEditorJsonError', {
defaultMessage: 'The meta JSON is not valid.',
defaultMessage: 'Invalid JSON.',
}),
{ allowEmptyString: true }
),
Expand Down

0 comments on commit ac11798

Please sign in to comment.