File tree 2 files changed +10
-3
lines changed
app/screens/Options/TestConnection
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change
1
+ import { useTranslation } from "react-i18next" ;
2
+
1
3
type Props = {
2
4
alias : string ;
3
5
accountName : string ;
@@ -15,13 +17,16 @@ export default function TestConnectionResultCard({
15
17
color,
16
18
currency,
17
19
} : Props ) {
20
+ const { t } = useTranslation ( "translation" , {
21
+ keyPrefix : "welcome.test_connection" ,
22
+ } ) ;
18
23
return (
19
24
< div className = { `${ color } rounded-lg py-6 dark:bg-gray-600` } >
20
25
< p className = "font-normal text-black ml-6 dark:text-white break-words" >
21
- Account Name: { accountName }
26
+ { t ( "account_name" , { accountName } ) }
22
27
</ p >
23
28
< p className = "font-normal text-black ml-6 dark:text-white" >
24
- Alias: { alias }
29
+ { t ( "alias" , { alias } ) }
25
30
</ p >
26
31
< p className = "text-2xl font-bold text-black ml-6 mt-2 dark:text-white" >
27
32
{ satoshis }
Original file line number Diff line number Diff line change 26
26
"contact_support" :
" If you need help please contact [email protected] " ,
27
27
"actions" : {
28
28
"delete_edit_account" : " Delete invalid account and edit again"
29
- }
29
+ },
30
+ "account_name" : " Account Name: {{accountName}}" ,
31
+ "alias" : " Alias: {{alias}}"
30
32
},
31
33
"pin_extension" : {
32
34
"title" : " Pin your Alby extension" ,
You can’t perform that action at this time.
0 commit comments