"Search in $conversationName$" is now "Search chat"

This commit is contained in:
Evan Hahn 2021-11-18 13:29:17 -06:00 committed by GitHub
parent ab91cbf94d
commit 80320d8825
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 15 deletions

View file

@ -770,14 +770,8 @@
"description": "Aria label for clear search button"
},
"searchIn": {
"message": "Search in $conversationName$",
"description": "Shown in the search box before text is entered when searching in a specific conversation",
"placeholders": {
"conversationName": {
"content": "$1",
"example": "Friends"
}
}
"message": "Search chat",
"description": "Shown in the search box before text is entered when searching in a specific conversation"
},
"noSearchResults": {
"message": "No results for \"$searchTerm$\"",

View file

@ -37,13 +37,7 @@ export const LeftPaneSearchInput = forwardRef<HTMLInputElement, PropsType>(
const emptyOrClear =
searchConversation && value ? () => onChangeValue('') : onClear;
const label = searchConversation
? i18n('searchIn', [
searchConversation.isMe
? i18n('noteToSelf')
: searchConversation.title,
])
: i18n('search');
const label = i18n(searchConversation ? 'searchIn' : 'search');
return (
<div className="LeftPaneSearchInput">