Skip to content
This repository was archived by the owner on Jun 16, 2022. It is now read-only.

Commit bb79946

Browse files
committed
Translate change CTA
1 parent 8feb1f6 commit bb79946

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/renderer/screens/exchange/Swap2/Form/FormSummary/SummaryValue.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
// @flow
22
import React from "react";
3-
import TextBase from "~/renderer/components/Text";
4-
import ButtonBase from "~/renderer/components/Button";
3+
import { useTranslation } from "react-i18next";
54
import styled from "styled-components";
5+
import ButtonBase from "~/renderer/components/Button";
6+
import TextBase from "~/renderer/components/Text";
67
import type { ThemedComponent } from "~/renderer/styles/StyleProvider";
78

89
const Container: ThemedComponent<{}> = styled.div`
@@ -47,11 +48,12 @@ const SummaryValue = ({
4748
handleChange?: Function,
4849
children?: React$Node,
4950
}) => {
51+
const { t } = useTranslation();
5052
return (
5153
<Container>
5254
{children}
5355
{value && <Text>{value}</Text>}
54-
{handleChange ? <Button onClick={handleChange}>Edit</Button> : null}
56+
{handleChange ? <Button onClick={handleChange}>{t("swap2.form.changeCTA")}</Button> : null}
5557
</Container>
5658
);
5759
};

static/i18n/en/app.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@
227227
"kyc": "KYC"
228228
},
229229
"form": {
230+
"changeCTA": "Change",
230231
"ratesDrawer": {
231232
"title": "Rate",
232233
"quote": "Quote",

0 commit comments

Comments
 (0)