Skip to content

Commit 49b26cf

Browse files
committed
translations
1 parent 31f97eb commit 49b26cf

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

components/EditProfilePage/EditProfilePage.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ export default function EditProfile({
6262
/>
6363
)
6464
}
65-
66-
// Todo add error handling/404 page?
6765
}
6866

6967
export function EditProfileForm({

components/Login/login.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,11 @@ export default function LoginPage() {
1717
<div className={`align-items-center d-flex px-2 pt-2 pb-0`}>
1818
<div className={`px-3 py-0`}>
1919
<div className={`align-items-start fs-5 lh-sm mb-1 text-secondary`}>
20-
You were possibly signed out while trying to go to a page that
21-
needs to be signed in to function
20+
{t("probablySignedOut")}
2221
</div>
2322
<br />
2423
<div className={`align-items-start fs-5 lh-sm mb-1 text-secondary`}>
25-
Please consider logging in first:
24+
{t("pleaseConsider")}
2625
</div>
2726
<br />
2827
<div className={`justify-content-center d-flex w-100`}>

components/Newsfeed/Newsfeed.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import ErrorPage from "next/error"
22
import { Timestamp } from "firebase/firestore"
33
import { useTranslation } from "next-i18next"
4-
import { useContext, useEffect, useState } from "react"
4+
import { useEffect, useState } from "react"
55
import { useAuth } from "../auth"
66
import { Col, Row, Spinner } from "../bootstrap"
77
import { Profile, useProfile, usePublicProfile } from "../db"
@@ -238,9 +238,9 @@ export default function Newsfeed() {
238238
<>
239239
<div className="pb-4">
240240
<NewsfeedCard
241-
header={`No Results`}
241+
header={t("noResults")}
242242
timestamp={Timestamp.now()}
243-
bodyText={`There are no news updates for your current followed topics`}
243+
bodyText={t("noNewsUpdates")}
244244
type={``}
245245
/>
246246
</div>

public/locales/en/auth.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"subscribeNewsletter": "Click here to subscribe to our newsletter",
5555
"verifyEmail": "Verify your email address",
5656
"verifyLinkSent": "Please verify your email for your account by clicking the verification link we sent to your email. You will be required to verify your email before submitting testimony.",
57-
"setUpProfile": "Set Up Your Profile"
58-
59-
57+
"setUpProfile": "Set Up Your Profile",
58+
"probablySignedOut": "You were possibly signed out while trying to go to a page that needs to be signed in to function",
59+
"pleaseConsider": "Please consider logging in first:"
6060
}

public/locales/en/common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
},
9898
"notInCommittee": "Bill not currently in committee",
9999
"noResults": "No Results",
100+
"noNewsUpdates": "There are no news updates for your current followed topics",
100101
"orgs": "Organizations",
101102
"partners": {
102103
"header": "Our Partners",

0 commit comments

Comments
 (0)