Skip to content

Commit 5e4d35f

Browse files
committed
Merge remote-tracking branch 'upstream/dev' into aggregate-fix-links
2 parents b42bbde + 8a2aef6 commit 5e4d35f

File tree

151 files changed

+1874
-1290
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

151 files changed

+1874
-1290
lines changed

.all-contributorsrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12724,6 +12724,15 @@
1272412724
"contributions": [
1272512725
"bug"
1272612726
]
12727+
},
12728+
{
12729+
"login": "microHoffman",
12730+
"name": "microHoffman",
12731+
"avatar_url": "https://avatars.githubusercontent.com/u/61500778?v=4",
12732+
"profile": "http://pwn.xyz",
12733+
"contributions": [
12734+
"bug"
12735+
]
1272712736
}
1272812737
],
1272912738
"contributorsPerLine": 7,

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,4 @@ src/data/crowdin/bucketsAwaitingReviewReport.csv
6060
# Storybook
6161
build-storybook.log
6262
storybook-static
63+

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1947,6 +1947,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
19471947
</tr>
19481948
<tr>
19491949
<td align="center" valign="top" width="14.28%"><a href="https://github.com/JJOptimist"><img src="https://avatars.githubusercontent.com/u/86833563?v=4?s=100" width="100px;" alt="JJOptimist"/><br /><sub><b>JJOptimist</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/issues?q=author%3AJJOptimist" title="Bug reports">🐛</a></td>
1950+
<td align="center" valign="top" width="14.28%"><a href="http://pwn.xyz"><img src="https://avatars.githubusercontent.com/u/61500778?v=4?s=100" width="100px;" alt="microHoffman"/><br /><sub><b>microHoffman</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/issues?q=author%3AmicroHoffman" title="Bug reports">🐛</a></td>
19501951
</tr>
19511952
</tbody>
19521953
</table>

app/[locale]/[...slug]/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export default async function Page({
6363
lastEditLocaleTimestamp,
6464
isTranslated,
6565
contributors,
66+
timeToRead,
6667
} = await getPageData({
6768
locale,
6869
slug,
@@ -97,8 +98,7 @@ export default async function Page({
9798
lastEditLocaleTimestamp={lastEditLocaleTimestamp}
9899
contentNotTranslated={!isTranslated}
99100
contributors={contributors}
100-
// TODO: Remove this once we have a real timeToRead value
101-
timeToRead={2}
101+
timeToRead={Math.round(timeToRead.minutes)}
102102
>
103103
{content}
104104
</Layout>

app/[locale]/_components/home.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ const HomePage = ({
118118

119119
return (
120120
<MainArticle className="flex w-full flex-col items-center" dir={dir}>
121-
<BannerNotification shouldShow>
121+
<BannerNotification shouldShow={locale === "en"}>
122122
<p>
123123
Let&apos;s celebrate 10 years of Ethereum! How did ethereum change
124124
your life? -{" "}
@@ -398,7 +398,7 @@ const HomePage = ({
398398
<button
399399
key={title}
400400
className={cn(
401-
"flex flex-col gap-y-0.5 border-t px-6 py-4 hover:bg-background-highlight max-md:hidden",
401+
"flex flex-col gap-y-0.5 border-t px-6 py-4 text-start hover:bg-background-highlight max-md:hidden",
402402
isModalOpen &&
403403
idx === activeCode &&
404404
"bg-background-highlight"
@@ -413,9 +413,7 @@ const HomePage = ({
413413
}}
414414
>
415415
<p className="font-bold">{title}</p>
416-
<p className="text-start text-sm text-body-medium">
417-
{description}
418-
</p>
416+
<p className="text-sm text-body-medium">{description}</p>
419417
</button>
420418
))}
421419
{/* Mobile */}

app/[locale]/assets/page.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import pick from "lodash.pick"
2-
import { getTranslations } from "next-intl/server"
2+
import {
3+
getMessages,
4+
getTranslations,
5+
setRequestLocale,
6+
} from "next-intl/server"
37

48
import { Lang } from "@/lib/types"
59

@@ -10,17 +14,17 @@ import { getRequiredNamespacesForPage } from "@/lib/utils/translations"
1014

1115
import AssetsPage from "./_components/assets"
1216

13-
import { loadMessages } from "@/i18n/loadMessages"
14-
1517
export default async function Page({
1618
params,
1719
}: {
1820
params: Promise<{ locale: Lang }>
1921
}) {
2022
const { locale } = await params
2123

24+
setRequestLocale(locale)
25+
2226
// Get i18n messages
23-
const allMessages = await loadMessages(locale)
27+
const allMessages = await getMessages({ locale })
2428
const requiredNamespaces = getRequiredNamespacesForPage("/assets")
2529
const messages = pick(allMessages, requiredNamespaces)
2630

app/[locale]/bug-bounty/page.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import pick from "lodash.pick"
2-
import { getTranslations } from "next-intl/server"
2+
import {
3+
getMessages,
4+
getTranslations,
5+
setRequestLocale,
6+
} from "next-intl/server"
37

48
import { type Params } from "@/lib/types"
59

@@ -10,13 +14,13 @@ import { getRequiredNamespacesForPage } from "@/lib/utils/translations"
1014

1115
import BugBountiesPage from "./_components/bug-bounty"
1216

13-
import { loadMessages } from "@/i18n/loadMessages"
14-
1517
export default async function Page({ params }: { params: Promise<Params> }) {
1618
const { locale } = await params
1719

20+
setRequestLocale(locale)
21+
1822
// Get i18n messages
19-
const allMessages = await loadMessages(locale)
23+
const allMessages = await getMessages({ locale })
2024
const requiredNamespaces = getRequiredNamespacesForPage("/bug-bounty")
2125
const messages = pick(allMessages, requiredNamespaces)
2226

app/[locale]/community/page.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import pick from "lodash.pick"
2-
import { getTranslations } from "next-intl/server"
2+
import {
3+
getMessages,
4+
getTranslations,
5+
setRequestLocale,
6+
} from "next-intl/server"
37

48
import { Lang } from "@/lib/types"
59

@@ -10,17 +14,17 @@ import { getRequiredNamespacesForPage } from "@/lib/utils/translations"
1014

1115
import CommunityPage from "./_components/community"
1216

13-
import { loadMessages } from "@/i18n/loadMessages"
14-
1517
export default async function Page({
1618
params,
1719
}: {
1820
params: Promise<{ locale: Lang }>
1921
}) {
2022
const { locale } = await params
2123

24+
setRequestLocale(locale)
25+
2226
// Get i18n messages
23-
const allMessages = await loadMessages(locale)
27+
const allMessages = await getMessages({ locale })
2428
const requiredNamespaces = getRequiredNamespacesForPage("/community")
2529
const pickedMessages = pick(allMessages, requiredNamespaces)
2630

app/[locale]/contributing/translation-program/acknowledgements/page.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import pick from "lodash.pick"
2-
import { getTranslations } from "next-intl/server"
2+
import {
3+
getMessages,
4+
getTranslations,
5+
setRequestLocale,
6+
} from "next-intl/server"
37

48
import { Lang } from "@/lib/types"
59

@@ -10,13 +14,13 @@ import { getRequiredNamespacesForPage } from "@/lib/utils/translations"
1014

1115
import Acknowledgements from "./_components/acknowledgements"
1216

13-
import { loadMessages } from "@/i18n/loadMessages"
14-
1517
const Page = async ({ params }: { params: Promise<{ locale: Lang }> }) => {
1618
const { locale } = await params
1719

20+
setRequestLocale(locale)
21+
1822
// Get i18n messages
19-
const allMessages = await loadMessages(locale)
23+
const allMessages = await getMessages({ locale })
2024
const requiredNamespaces = getRequiredNamespacesForPage(
2125
"/contributing/translation-program/acknowledgements"
2226
)

app/[locale]/contributing/translation-program/contributors/page.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import pick from "lodash.pick"
2-
import { getTranslations } from "next-intl/server"
2+
import {
3+
getMessages,
4+
getTranslations,
5+
setRequestLocale,
6+
} from "next-intl/server"
37

48
import { Lang } from "@/lib/types"
59

@@ -10,13 +14,13 @@ import { getRequiredNamespacesForPage } from "@/lib/utils/translations"
1014

1115
import Contributors from "./_components/contributors"
1216

13-
import { loadMessages } from "@/i18n/loadMessages"
14-
1517
const Page = async ({ params }: { params: Promise<{ locale: Lang }> }) => {
1618
const { locale } = await params
1719

20+
setRequestLocale(locale)
21+
1822
// Get i18n messages
19-
const allMessages = await loadMessages(locale)
23+
const allMessages = await getMessages({ locale })
2024
const requiredNamespaces = getRequiredNamespacesForPage(
2125
"/contributing/translation-program/contributors"
2226
)

0 commit comments

Comments
 (0)