Skip to content

Commit 219ac44

Browse files
committed
chore: move strings to translations
1 parent 9a4ce34 commit 219ac44

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/app/screens/Options/TestConnection/card.tsx

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { useTranslation } from "react-i18next";
2+
13
type Props = {
24
alias: string;
35
accountName: string;
@@ -15,13 +17,16 @@ export default function TestConnectionResultCard({
1517
color,
1618
currency,
1719
}: Props) {
20+
const { t } = useTranslation("translation", {
21+
keyPrefix: "welcome.test_connection",
22+
});
1823
return (
1924
<div className={`${color} rounded-lg py-6 dark:bg-gray-600`}>
2025
<p className="font-normal text-black ml-6 dark:text-white break-words">
21-
Account Name: {accountName}
26+
{t("account_name", { accountName })}
2227
</p>
2328
<p className="font-normal text-black ml-6 dark:text-white">
24-
Alias: {alias}
29+
{t("alias", { alias })}
2530
</p>
2631
<p className="text-2xl font-bold text-black ml-6 mt-2 dark:text-white">
2732
{satoshis}

src/i18n/locales/en/translation.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
"contact_support": "If you need help please contact [email protected]",
2727
"actions": {
2828
"delete_edit_account": "Delete invalid account and edit again"
29-
}
29+
},
30+
"account_name": "Account Name: {{accountName}}",
31+
"alias": "Alias: {{alias}}"
3032
},
3133
"pin_extension": {
3234
"title": "Pin your Alby extension",

0 commit comments

Comments
 (0)