Skip to content

Commit b06f11e

Browse files
committed
moved page specific translations to hearing.json
1 parent 0ba52e0 commit b06f11e

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed

components/hearing/HearingDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const HearingDetails = ({
3838
}: {
3939
hearingId: string | string[] | undefined
4040
}) => {
41-
const { t } = useTranslation("common")
41+
const { t } = useTranslation(["common", "hearing"])
4242

4343
const videoRef = useRef<HTMLVideoElement>(null)
4444
function setCurTimeVideo(value: number) {

pages/hearing/[hearingId].tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@ export const getServerSideProps: GetServerSideProps = async ctx => {
3030

3131
return {
3232
props: {
33-
...(await serverSideTranslations(locale, ["auth", "common", "footer"]))
33+
...(await serverSideTranslations(locale, [
34+
"auth",
35+
"common",
36+
"footer",
37+
"hearing"
38+
]))
3439
}
3540
}
3641
}

public/locales/en/common.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,6 @@
6464
"followed": "Followed"
6565
},
6666
"calendar": "Our Calendar",
67-
"chairs": "Chairs",
68-
"committee_members": "Committee members",
69-
"hearing": "Hearing ",
70-
"hearing_details": "Hearing details",
7167
"hideAns": "Hide Answer",
7268
"date": "{{date, datetime(year: 'numeric'; month: 'long'; day: 'numeric')}}",
7369
"joinTraining": "and join an upcoming training session!",
@@ -84,7 +80,6 @@
8480
"logInSignUp": "Log in / Sign up",
8581
"maple_abbr": "MAPLE",
8682
"maple_fullName": "Massachusetts Platform for Legislative Engagement",
87-
"members": "Members",
8883
"navigation": {
8984
"accountProfile": "Profile",
9085
"additionalResources": "Additional Resources",
@@ -129,14 +124,12 @@
129124
"notInCommittee": "Bill not currently in committee",
130125
"noResults": "No Results",
131126
"noNewsUpdates": "There are no news updates for your current followed topics",
132-
"no_video_on_file": "This hearing does not yet have a video on file",
133127
"orgs": "Organizations",
134128
"pending_upgrade_warning": {
135129
"header": "Organization Request In Progress",
136130
"content": "Your request to be upgraded to an organization is currently in progress. You will be notified by email when your request has been reviewed."
137131
},
138132
"primarySponsor": "Primary Sponsor",
139-
"recording_date": "Recording date",
140133
"short_description": "MAPLE makes it easy for anyone to view and submit testimony to the Massachusetts Legislature about the bills that will shape our future.",
141134
"showAns": "Show Answer",
142135
"socials": {
@@ -152,7 +145,6 @@
152145
"table": {
153146
"page": "Page {{currentPage}}"
154147
},
155-
"transcription_not_on_file": "This hearing does not yet have a transcription on file",
156148
"titles": {
157149
"admin": "Admin",
158150
"bill": "Bill",

public/locales/en/hearing.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"chairs": "Chairs",
3+
"committee_members": "Committee members",
4+
"hearing": "Hearing ",
5+
"hearing_details": "Hearing details",
6+
"members": "Members",
7+
"no_video_on_file": "This hearing does not yet have a video on file",
8+
"recording_date": "Recording date",
9+
"transcription_not_on_file": "This hearing does not yet have a transcription on file"
10+
}

0 commit comments

Comments
 (0)