Skip to content

Commit

Permalink
translation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Michail Yasonik committed Sep 14, 2020
1 parent ea4825b commit 880a540
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions x-pack/plugins/global_search_bar/public/components/search_bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,37 @@ export function SearchBar({ globalSearch, navigateToUrl }: Props) {
responsive={false}
wrap
>
<FormattedMessage
id="xpack.globalSearchBar.searchBar.shortcutDescription.shortcutDetail"
defaultMessage="{shortcutDescription}{commandDescription}"
values={{
shortcutDescription: (
<EuiFlexItem grow={false}>
<FormattedMessage
id="xpack.globalSearchBar.searchBar.shortcutDescription.shortcutInstructionDescription"
defaultMessage="Shortcut"
/>
</EuiFlexItem>
),
commandDescription: (
<EuiFlexItem grow={false}>
<EuiBadge>
{isMac ? (
<FormattedMessage
id="xpack.globalSearchBar.searchBar.shortcutDescription.macCommandDescription"
defaultMessage="Command + /"
/>
) : (
<FormattedMessage
id="xpack.globalSearchBar.searchBar.shortcutDescription.windowsCommandDescription"
defaultMessage="Control + /"
/>
)}
</EuiBadge>
</EuiFlexItem>
),
}}
/>
<FormattedMessage
id="xpack.globalSearchBar.searchBar.shortcut"
defaultMessage="{what}{how}"
Expand Down

0 comments on commit 880a540

Please sign in to comment.