File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed
apps/browser-extension-wallet/src/views/browser-view/features/dapp/ui/components/filters/search
core/src/ui/components/AssetSelector
translation/src/lib/translations/browser-extension-wallet Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
import { SearchBox } from '@input-output-hk/lace-ui-toolkit' ;
2
2
import React , { useEffect , useState } from 'react' ;
3
+ import { useTranslation } from 'react-i18next' ;
3
4
4
5
type SearchProps = {
5
6
onChange ?: ( value : string ) => void ;
@@ -8,10 +9,11 @@ type SearchProps = {
8
9
9
10
export const Search : React . FC < SearchProps > = ( { onChange, initialValue = '' } ) => {
10
11
const [ searchValue , setSearchValue ] = useState ( initialValue ) ;
12
+ const { t } = useTranslation ( ) ;
11
13
useEffect ( ( ) => onChange ?.( searchValue ) , [ onChange , searchValue ] ) ;
12
14
return (
13
15
< SearchBox
14
- placeholder = "Search by ID or name"
16
+ placeholder = { t ( 'asset.searchPlaceholder' ) }
15
17
value = { searchValue }
16
18
onChange = { setSearchValue }
17
19
onClear = { ( ) => setSearchValue ( '' ) }
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ export const AssetSelectorOverlay = ({
168
168
setValue ( '' ) ;
169
169
} }
170
170
withSearchIcon
171
- inputPlaceholder = "Search by ID or name"
171
+ inputPlaceholder = { t ( 'asset.searchPlaceholder' ) }
172
172
onChange = { handleSearch }
173
173
value = { value }
174
174
onFocus = { ( ) => setFocus ( true ) }
Original file line number Diff line number Diff line change 965
965
"dapp.connector.btc.error.description" : " DApp connector for Bitcoin wallet is not supported in this version of the extension." ,
966
966
"dapp.connector.btc.error.closeButton" : " Close" ,
967
967
"languageChoice.english" : " English" ,
968
- "languageChoice.japanese" : " Japanese"
968
+ "languageChoice.japanese" : " Japanese" ,
969
+ "asset.searchPlaceholder" : " Search by ID or name"
969
970
}
Original file line number Diff line number Diff line change 954
954
"dapp.connector.btc.error.description" : " この拡張機能のバージョンでは、BitcoinウォレットのDAppコネクタはサポートされていません。" ,
955
955
"dapp.connector.btc.error.closeButton" : " 閉じる" ,
956
956
"languageChoice.english" : " 英語" ,
957
- "languageChoice.japanese" : " 日本語"
957
+ "languageChoice.japanese" : " 日本語" ,
958
+ "asset.searchPlaceholder" : " IDまたは名前で検索"
958
959
}
You can’t perform that action at this time.
0 commit comments