Skip to content

Commit

Permalink
convert hard coded text to i18n strings
Browse files Browse the repository at this point in the history
  • Loading branch information
maximpn committed Jan 27, 2023
1 parent f210f48 commit 5d6c42a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ const TagsFilterPopoverComponent = ({
<EuiSelectable
searchable
searchProps={{
placeholder: 'Search tags',
placeholder: i18n.SEARCH_TAGS,
}}
aria-label="Rules tag search"
aria-label={i18n.RULES_TAG_SEARCH}
options={selectableOptions}
onChange={handleSelectableOptionsChange}
emptyMessage={i18n.NO_TAGS_AVAILABLE}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,20 @@ export const TAGS = i18n.translate(
}
);

export const SEARCH_TAGS = i18n.translate(
'xpack.securitySolution.detectionEngine.rules.allRules.filters.searchTagsPlaceholder',
{
defaultMessage: 'Search tags',
}
);

export const RULES_TAG_SEARCH = i18n.translate(
'xpack.securitySolution.detectionEngine.rules.allRules.filters.rulesTagSearchText',
{
defaultMessage: 'Rules tag search',
}
);

export const NO_TAGS_AVAILABLE = i18n.translate(
'xpack.securitySolution.detectionEngine.rules.allRules.filters.noTagsAvailableDescription',
{
Expand Down

0 comments on commit 5d6c42a

Please sign in to comment.