Skip to content

Commit fbbcddc

Browse files
authored
Merge pull request #1870 from jicruz96/communicating-with-legislators-translation
extract text to translation ready files -- Communicating with Legislators page
2 parents 2b383a6 + c5ec075 commit fbbcddc

File tree

3 files changed

+25
-17
lines changed

3 files changed

+25
-17
lines changed

components/CommunicatingWithLegislators/CommunicatingWithLegislatorsContent.tsx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Row, Col } from "../bootstrap"
22
import Image from "react-bootstrap/Image"
33
import styled from "styled-components"
4+
import { useTranslation } from "next-i18next"
45

56
const StyledImage = styled(Image)`
67
width: 12.5rem;
@@ -27,9 +28,9 @@ const WritingContent = () => (
2728
<Row className="align-items-center">
2829
<Col xs={12} md={8} lg={{ span: 7, offset: 1 }}>
2930
<p>
30-
You can submit your thoughts on a bill to the Committee hearing it
31-
before the date of their public hearing. This website, the MAPLE
32-
platform, focuses on this mechanism.
31+
{useTranslation("learnComponents").t(
32+
"communicating.testifyInWriting.content"
33+
)}
3334
</p>
3435
</Col>
3536
<Col md={4} lg={3}>
@@ -58,8 +59,9 @@ const OralContent = () => (
5859
lg={{ span: 7, order: 1 }}
5960
>
6061
<p>
61-
You can attend a public hearing for a bill of interest to you and sign
62-
up for a slot to speak before the Committee.
62+
{useTranslation("learnComponents").t(
63+
"communicating.testifyOrally.content"
64+
)}
6365
</p>
6466
</Col>
6567
</Row>
@@ -69,12 +71,9 @@ const WriteOrCallContent = () => (
6971
<Row className="align-items-center">
7072
<Col xs={12} md={8} lg={{ span: 7, offset: 1 }}>
7173
<p>
72-
You can contact your legislators any time by looking up their contact
73-
information on the MA Legislature website. Your voice will probably
74-
carry the most weight with the House and Senate representatives of your
75-
own district, but you are free to contact Committee Chairs or any other
76-
member of the legislature with your opinions. You could request a
77-
meeting in person.
74+
{useTranslation("learnComponents").t(
75+
"communicating.writeOrCall.content"
76+
)}
7877
</p>
7978
</Col>
8079
<Col md={4} lg={3}>

components/LearnTestimonyComponents/LearnComponents.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,15 +181,15 @@ const CommunicatingWithLegislators = () => {
181181
</h1>
182182
<p className={"ms-1 fs-4"}>{t("communicating.intro")}</p>
183183

184-
<CommWithLegCard title={t("communicating.testifyInWriting")}>
184+
<CommWithLegCard title={t("communicating.testifyInWriting.title")}>
185185
<WritingContent />
186186
</CommWithLegCard>
187187

188-
<CommWithLegCard title={t("communicating.testifyOrally")}>
188+
<CommWithLegCard title={t("communicating.testifyOrally.title")}>
189189
<OralContent />
190190
</CommWithLegCard>
191191

192-
<CommWithLegCard title={t("communicating.writeOrCall")}>
192+
<CommWithLegCard title={t("communicating.writeOrCall.title")}>
193193
<WriteOrCallContent />
194194
</CommWithLegCard>
195195
</Col>

public/locales/en/learnComponents.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,18 @@
8383
"communicating": {
8484
"title": "Communicating with Legislators",
8585
"intro": "There are multiple ways to share your perspective and knowledge with your legislators.",
86-
"testifyInWriting": "Testify in writing",
87-
"testifyOrally": "Testify orally",
88-
"writeOrCall": "Write or call them"
86+
"testifyInWriting": {
87+
"title": "Testify in writing",
88+
"content": "You can submit your thoughts on a bill to the Committee hearing it before the date of their public hearing. This website, the MAPLE platform, focuses on this mechanism."
89+
},
90+
"testifyOrally": {
91+
"title": "Testify orally",
92+
"content": "You can attend a public hearing for a bill of interest to you and sign up for a slot to speak before the Committee."
93+
},
94+
"writeOrCall": {
95+
"title": "Write or call them",
96+
"content": "You can contact your legislators any time by looking up their contact information on the MA Legislature website. Your voice will probably carry the most weight with the House and Senate representatives of your own district, but you are free to contact Committee Chairs or any other member of the legislature with your opinions. You could request a meeting in person."
97+
}
8998
},
9099
"legislative": {
91100
"title": "Understanding the Massachusetts Legislative Process",

0 commit comments

Comments
 (0)