"Search in $conversationName$" is now "Search chat"
This commit is contained in:
parent
ab91cbf94d
commit
80320d8825
2 changed files with 3 additions and 15 deletions
|
@ -770,14 +770,8 @@
|
||||||
"description": "Aria label for clear search button"
|
"description": "Aria label for clear search button"
|
||||||
},
|
},
|
||||||
"searchIn": {
|
"searchIn": {
|
||||||
"message": "Search in $conversationName$",
|
"message": "Search chat",
|
||||||
"description": "Shown in the search box before text is entered when searching in a specific conversation",
|
"description": "Shown in the search box before text is entered when searching in a specific conversation"
|
||||||
"placeholders": {
|
|
||||||
"conversationName": {
|
|
||||||
"content": "$1",
|
|
||||||
"example": "Friends"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"noSearchResults": {
|
"noSearchResults": {
|
||||||
"message": "No results for \"$searchTerm$\"",
|
"message": "No results for \"$searchTerm$\"",
|
||||||
|
|
|
@ -37,13 +37,7 @@ export const LeftPaneSearchInput = forwardRef<HTMLInputElement, PropsType>(
|
||||||
const emptyOrClear =
|
const emptyOrClear =
|
||||||
searchConversation && value ? () => onChangeValue('') : onClear;
|
searchConversation && value ? () => onChangeValue('') : onClear;
|
||||||
|
|
||||||
const label = searchConversation
|
const label = i18n(searchConversation ? 'searchIn' : 'search');
|
||||||
? i18n('searchIn', [
|
|
||||||
searchConversation.isMe
|
|
||||||
? i18n('noteToSelf')
|
|
||||||
: searchConversation.title,
|
|
||||||
])
|
|
||||||
: i18n('search');
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="LeftPaneSearchInput">
|
<div className="LeftPaneSearchInput">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue