Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
164 commits
Select commit Hold shift + click to select a range
6398d03
fix: use ext link for credential lookup
wackerow Mar 13, 2026
ac2089a
i18n: update translations for withdrawal credentials
wackerow Mar 13, 2026
405788f
Rebrand ZKP2P to Peer across exchange listings
0xSachinK Mar 16, 2026
cc31f4c
replace deprecated `disableLogger` with `webpack.treeshake.removeDebu…
alerodriargui Mar 17, 2026
290859a
fix(i18n): number formatting
wackerow Mar 18, 2026
9e51543
refactor: number.toLocaleString to numberFormat standard
wackerow Mar 18, 2026
b51450b
fix(i18n): date formatting
wackerow Mar 18, 2026
083472e
deprecate: unused i18n config properties
wackerow Mar 18, 2026
ef101e9
docs: fix typo in docs/ab-testing.md
Mar 23, 2026
1f73f00
docs: fix typo in docs/api-keys.md
Mar 23, 2026
10a5c34
docs: fix typo in docs/applying-storybook.md
Mar 23, 2026
129d516
docs: fix typo in docs/best-practices.md
Mar 23, 2026
26c2562
docs: fix typo in docs/code-conventions.md
Mar 23, 2026
3cfeb44
docs: fix typo in docs/deploy-process.md
Mar 23, 2026
92e5eec
docs: fix typo in docs/editing-markdown.md
Mar 23, 2026
a40d73a
docs: fix typo in docs/event-tracking.md
Mar 23, 2026
ac0970f
docs: fix typo in docs/github-issue-triage-process.md
Mar 23, 2026
71324be
Merge branch 'dev' into withdrawal-creds-key
wackerow Mar 23, 2026
98f72c8
Merge branch 'dev' into withdrawal-creds-key
wackerow Mar 25, 2026
1b65f0d
fix: spacing in href attribute
wackerow Mar 25, 2026
70b9b86
fix: empty home link
wackerow Mar 25, 2026
2004e34
fix: proof-of-stake /pos/ URL
wackerow Mar 25, 2026
9d1d66a
fix: rm unused lorem string
wackerow Mar 25, 2026
64d6744
fix react dom warnings for blurwidth/blurheight props from getImageProps
pettinarip Mar 27, 2026
f541e1c
add images.qualities config for next.js 16 compatibility
pettinarip Mar 27, 2026
f67bc8b
refactor: upgrade prism-react-renderer from v1 to v2
pettinarip Mar 27, 2026
7b1c172
build(deps): bump brace-expansion from 1.1.11 to 1.1.13
dependabot[bot] Mar 27, 2026
e126b67
chore: remove commented out code line
wackerow Mar 27, 2026
60f8738
refactor: upgrade prism-react-renderer from v1 to v2
pettinarip Mar 27, 2026
3919fbb
chore: sort imports
wackerow Mar 27, 2026
9ada1f5
Merge pull request #17780 from 0xSachinK/rebrand-zkp2p-to-peer
wackerow Mar 27, 2026
59ceb75
docs: update README.md [skip ci]
allcontributors[bot] Mar 27, 2026
f098c93
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Mar 27, 2026
064e9c3
Merge pull request #17879 from ethereum/all-contributors/add-0xSachinK
wackerow Mar 27, 2026
d51f62b
Update chains data
actions-user Mar 27, 2026
4c3b6a2
Merge branch 'dev' into number-format
wackerow Mar 27, 2026
568aca1
Merge pull request #17791 from ethereum/number-format
wackerow Mar 27, 2026
334fe56
Merge pull request #17877 from ethereum/dependabot/npm_and_yarn/brace…
wackerow Mar 27, 2026
27b8ff2
Merge pull request #17880 from ethereum/automated-update-20260327163710
wackerow Mar 27, 2026
3ae0133
docs: update README.md [skip ci]
allcontributors[bot] Mar 27, 2026
48c41ff
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Mar 27, 2026
569276c
Merge pull request #17882 from ethereum/all-contributors/add-nxxck
wackerow Mar 27, 2026
41f1f1d
docs: update README.md [skip ci]
allcontributors[bot] Mar 27, 2026
0e1ce02
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Mar 27, 2026
0a1470e
Merge pull request #17883 from ethereum/all-contributors/add-nexonik2
wackerow Mar 27, 2026
5d8656b
i18n(ur): Gemini translation
wackerow Mar 28, 2026
2b90e3f
Merge pull request #17884 from ethereum/i18n/ur-03-28T0527
wackerow Mar 28, 2026
890abfb
i18n(bn): Gemini translation
wackerow Mar 28, 2026
bf79e5c
i18n: post-import sanitization
wackerow Mar 28, 2026
f5602f7
i18n(de): Gemini translation
wackerow Mar 28, 2026
dfc589b
i18n: post-import sanitization
wackerow Mar 28, 2026
ef1c92c
i18n(id): Gemini translation
wackerow Mar 28, 2026
daa2af6
i18n(it): Gemini translation
wackerow Mar 28, 2026
1acad13
i18n: post-import sanitization
wackerow Mar 28, 2026
71e5047
i18n(ta): Gemini translation
wackerow Mar 28, 2026
07e015c
i18n: post-import sanitization
wackerow Mar 28, 2026
f05fb0a
i18n(ta): Gemini translation
wackerow Mar 28, 2026
154fa80
i18n(ta): Gemini translation
wackerow Mar 28, 2026
d30aa0b
i18n: post-import sanitization
wackerow Mar 28, 2026
68022c6
i18n(ar): Gemini translation
wackerow Mar 28, 2026
e21d88a
i18n(bn): Gemini translation
wackerow Mar 28, 2026
69f13b6
i18n(de): Gemini translation
wackerow Mar 28, 2026
a172f3f
i18n(id): Gemini translation
wackerow Mar 28, 2026
4d55b45
i18n(it): Gemini translation
wackerow Mar 28, 2026
97ec0ba
i18n(sw): Gemini translation
wackerow Mar 28, 2026
5568cda
i18n(ur): Gemini translation
wackerow Mar 28, 2026
aa76f50
i18n(bn): Gemini translation
wackerow Mar 28, 2026
c44c27c
i18n(de): Gemini translation
wackerow Mar 28, 2026
e36a279
i18n(id): Gemini translation
wackerow Mar 28, 2026
dce4ef4
i18n(it): Gemini translation
wackerow Mar 28, 2026
5564115
i18n(ur): Gemini translation
wackerow Mar 28, 2026
a670c4a
i18n(ur): Gemini translation
wackerow Mar 28, 2026
b538e6d
i18n: post-import sanitization
wackerow Mar 28, 2026
cdf2b62
i18n: post-import sanitization
wackerow Mar 28, 2026
14145bf
i18n(de): update whitepaper intro to match English
myelinated-wackerow Mar 28, 2026
40d7d2b
fix(i18n): fix critical review findings
myelinated-wackerow Mar 28, 2026
0089b75
Merge pull request #17888 from ethereum/i18n/failed-files-cleanup-03-28
wackerow Mar 28, 2026
f3a3fb8
fix: repair 3 broken HTML tags in glossary.json
myelinated-wackerow Mar 28, 2026
53b08e8
fix(i18n): use intl string for category tag
myelinated-wackerow Mar 28, 2026
1920fc8
fix(i18n): translate subcategory tags
myelinated-wackerow Mar 29, 2026
e6fa38f
i18n(ar): Gemini translation
wackerow Mar 29, 2026
1f8aed6
i18n(bn): Gemini translation
wackerow Mar 29, 2026
e73fd5f
i18n(cs): Gemini translation
wackerow Mar 29, 2026
a312eb2
i18n(de): Gemini translation
wackerow Mar 29, 2026
a88916a
i18n(es): Gemini translation
wackerow Mar 29, 2026
d85bc1d
i18n(fr): Gemini translation
wackerow Mar 29, 2026
2632a2c
i18n(hi): Gemini translation
wackerow Mar 29, 2026
c88b118
i18n(id): Gemini translation
wackerow Mar 29, 2026
586601e
i18n(it): Gemini translation
wackerow Mar 29, 2026
98d1299
i18n(ja): Gemini translation
wackerow Mar 29, 2026
e46bcbf
i18n(ko): Gemini translation
wackerow Mar 29, 2026
8201095
i18n(mr): Gemini translation
wackerow Mar 29, 2026
754706f
i18n(pl): Gemini translation
wackerow Mar 29, 2026
1f0d32f
i18n(pt-br): Gemini translation
wackerow Mar 29, 2026
3a75bd9
i18n(ru): Gemini translation
wackerow Mar 29, 2026
0cfa632
i18n(sw): Gemini translation
wackerow Mar 29, 2026
3d3b46e
i18n(ta): Gemini translation
wackerow Mar 29, 2026
5b9909f
i18n(te): Gemini translation
wackerow Mar 29, 2026
37218ae
i18n(tr): Gemini translation
wackerow Mar 29, 2026
45f1408
i18n(uk): Gemini translation
wackerow Mar 29, 2026
3f7f48b
i18n(ur): Gemini translation
wackerow Mar 29, 2026
9777787
i18n(vi): Gemini translation
wackerow Mar 29, 2026
39bc62f
i18n(zh): Gemini translation
wackerow Mar 29, 2026
be2a9fc
i18n(zh-tw): Gemini translation
wackerow Mar 29, 2026
e9d22c6
feat: add empty action for branch tasks
myelinated-wackerow Mar 29, 2026
bfd2660
Merge pull request #17893 from ethereum/branch-task
wackerow Mar 29, 2026
333e620
refactor: use oneLight theme for better code block contrast
pettinarip Mar 30, 2026
4e601af
refactor: replace codeblock topbaritem with shared button component
pettinarip Mar 30, 2026
992fa65
fix: use token.empty to filter trailing line in prism-react-renderer v2
pettinarip Mar 30, 2026
0849f1f
Update next.config.js
pettinarip Mar 30, 2026
41dddb5
Merge pull request #17897 from ethereum/staging
pettinarip Mar 30, 2026
a54c2fd
refactor: upgrade Next.js 15.5 to 16.2 with next-intl v4 and Turbopac…
pettinarip Mar 30, 2026
291db4e
fix: use string shorthand for getTranslations calls missing locale
pettinarip Mar 30, 2026
e462f99
fix: disable accept-language detection in next-intl v4 routing
pettinarip Mar 30, 2026
e6ba232
Update bounty hunter 'VulSight' - Medium 5000 points
0xMushow Mar 31, 2026
a4cdb43
refactor: use string shorthand for all getTranslations calls
pettinarip Mar 31, 2026
59f8b2b
Add ETHReS 2026 to community events.
ivan-homoliak-sutd Mar 31, 2026
bfa79f5
fix(i18n): fix subcategory translation errors
myelinated-wackerow Mar 31, 2026
bac60e3
Merge pull request #17892 from ethereum/i18n/translations-03-29T0230
wackerow Apr 1, 2026
1d071b6
fix(i18n): translate subcategory tags on /apps/
myelinated-wackerow Apr 1, 2026
e2430a2
optimize ethres-2026 banner: convert png to jpg, resize 1536px to 800…
pettinarip Apr 1, 2026
fa9b9eb
Merge pull request #17902 from ivan-homoliak-sutd/ETHReS-2026
pettinarip Apr 1, 2026
9be0a27
Merge pull request #17875 from ethereum/fix/blur-props-dom-warning
wackerow Apr 1, 2026
11820d3
Merge pull request #17876 from ethereum/refactor/prism-react-renderer-v2
wackerow Apr 1, 2026
e590612
fix: move @sentry/nextjs from devDependencies to dependencies
pettinarip Apr 2, 2026
0b75d81
Merge pull request #17898 from ethereum/refactor/nextjs-16-upgrade
pettinarip Apr 2, 2026
57031b8
refactor(storybook): normalize @storybook/react/* wildcard imports to…
pettinarip Mar 30, 2026
56df7d9
refactor(storybook): upgrade from Storybook 8.6 to 9.1
pettinarip Apr 2, 2026
838d7d9
fix(storybook): update PhoneDecorator import missed by SB9 automigration
pettinarip Mar 30, 2026
b0e2cc0
refactor(storybook): convert next-intl.ts from require() to ESM
pettinarip Mar 30, 2026
f33d93c
refactor(storybook): upgrade from Storybook 9.1 to 10.3
pettinarip Mar 30, 2026
e8ab3a4
refactor(storybook): update third-party addons for SB10
pettinarip Mar 30, 2026
6b1770d
docs: update storybook import path in applying-storybook.md
pettinarip Mar 30, 2026
c05abbe
fix(storybook): revert next-intl.ts to require() for webpack bundling
pettinarip Mar 30, 2026
67cdeb6
fix(storybook): remove vite added by sb10 automigration
pettinarip Mar 31, 2026
9ba9539
update pnpm lock
pettinarip Mar 31, 2026
f2162f8
fix(storybook): update tsconfig for SB10 module resolution
pettinarip Mar 31, 2026
4147ab9
fix: replace deep imports incompatible with bundler module resolution
pettinarip Mar 31, 2026
128acf0
fix: update storybook version ref in docs and fix import ordering in …
pettinarip Mar 31, 2026
097a282
fix: move type alias below imports in compile.ts
pettinarip Apr 2, 2026
8ce1428
Merge pull request #17900 from ethereum/refactor/storybook-10-upgrade…
pettinarip Apr 2, 2026
e1f09fb
Merge pull request #17889 from ethereum/fix/glossary-json-html-bugs
pettinarip Apr 2, 2026
a4bbef3
Merge pull request #17890 from ethereum/fix-tools-modal-tags
pettinarip Apr 2, 2026
2aa49b8
build(deps): bump lodash from 4.17.23 to 4.18.1
dependabot[bot] Apr 2, 2026
7ff3bb1
Merge pull request #17899 from 0xMushow/patch-10
wackerow Apr 2, 2026
3419e60
Merge pull request #17913 from ethereum/dependabot/npm_and_yarn/lodas…
wackerow Apr 2, 2026
f0da355
Merge remote-tracking branch 'origin/dev' into pr-17891-sub-tags
myelinated-wackerow Apr 2, 2026
f7fb521
Merge pull request #17891 from ethereum/fix/subcategory-tag-translation
wackerow Apr 2, 2026
24a476e
merge: resolve i18n conflicts with dev
myelinated-wackerow Apr 2, 2026
73441a4
fix(a11y): disabled ButtonLinks for SR/tab
myelinated-wackerow Apr 3, 2026
37f56a9
Merge pull request #17776 from ethereum/withdrawal-creds-key
wackerow Apr 3, 2026
b5b7af5
Merge branch 'dev' into fix/href-break
wackerow Apr 3, 2026
55a4575
Merge pull request #17847 from ethereum/fix/href-break
wackerow Apr 3, 2026
daef090
Merge branch 'dev' into rm-lorem
wackerow Apr 3, 2026
dd0f0bc
Merge pull request #17856 from ethereum/rm-lorem
wackerow Apr 3, 2026
dcd34d9
Merge pull request #17824 from lo996/beggar-hunter/docs-typo-ethereum…
wackerow Apr 3, 2026
b2bf9b0
docs: update README.md [skip ci]
allcontributors[bot] Apr 3, 2026
1726893
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Apr 3, 2026
4d25fe1
Merge pull request #17917 from ethereum/all-contributors/add-lo996
wackerow Apr 3, 2026
a12772d
Merge branch 'dev' into fix-17763-disableLogger-deprecation-warning
pettinarip Apr 3, 2026
5f32ba2
Merge pull request #17785 from alerodriargui/fix-17763-disableLogger-…
pettinarip Apr 3, 2026
6dbd756
Merge pull request #17918 from ethereum/master
pettinarip Apr 3, 2026
fb2f521
Merge pull request #17919 from ethereum/staging
pettinarip Apr 3, 2026
37883b5
11.2.0
pettinarip Apr 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
36 changes: 36 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -14094,6 +14094,42 @@
"contributions": [
"content"
]
},
{
"login": "0xSachinK",
"name": "Sachin",
"avatar_url": "https://avatars.githubusercontent.com/u/73331595?v=4",
"profile": "https://github.com/0xSachinK",
"contributions": [
"maintenance"
]
},
{
"login": "nxxck",
"name": "nxxck",
"avatar_url": "https://avatars.githubusercontent.com/u/48026464?v=4",
"profile": "https://github.com/nxxck",
"contributions": [
"content"
]
},
{
"login": "nexonik2",
"name": "Nexonik",
"avatar_url": "https://avatars.githubusercontent.com/u/262324427?v=4",
"profile": "https://github.com/Nexonik2",
"contributions": [
"content"
]
},
{
"login": "lo996",
"name": "lo996",
"avatar_url": "https://avatars.githubusercontent.com/u/136587632?v=4",
"profile": "https://github.com/lo996",
"contributions": [
"maintenance"
]
}
],
"contributorsPerLine": 7,
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/branch-task.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Branch Task

on:
workflow_dispatch:

jobs:
stub:
runs-on: ubuntu-latest
steps:
- run: echo "ok"
4 changes: 2 additions & 2 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const path = require("path")

const buildEslintCommand = (filenames) =>
`next lint --fix --file ${filenames
`eslint --fix ${filenames
.map((f) => path.relative(process.cwd(), f))
.join(" --file ")}`
.join(" ")}`

const formatCommand = "prettier --write"

Expand Down
18 changes: 8 additions & 10 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,22 @@ const config: StorybookConfig = {
"../src/layouts/stories/*.stories.tsx",
"../src/styles/*.stories.tsx",
],

addons: [
"@storybook/addon-links",
{
name: "@storybook/addon-essentials",
options: {
backgrounds: false,
},
},
"@storybook/addon-interactions",
"@storybook/addon-themes",
"@chromatic-com/storybook",
"storybook-next-intl",
"@storybook/addon-docs",
],

staticDirs: ["../public"],

framework: {
name: "@storybook/nextjs",
options: {},
},
docs: {
autodocs: "tag",
},

webpackFinal: async (config) => {
config.module = config.module || {}
config.module.rules = config.module.rules || []
Expand Down Expand Up @@ -75,15 +70,18 @@ const config: StorybookConfig = {

return config
},

typescript: {
reactDocgenTypescriptOptions: {
shouldExtractLiteralValuesFromEnum: true,
},

reactDocgen: "react-docgen-typescript",
},

features: {
experimentalRSC: true,
backgrounds: false,
},
}
export default config
2 changes: 1 addition & 1 deletion .storybook/manager.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { addons } from "@storybook/manager-api"
import { addons } from "storybook/manager-api"

import favicon from "../public/images/eth-home-icon.png"

Expand Down
52 changes: 27 additions & 25 deletions .storybook/next-intl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,35 +29,37 @@ const supportedLngs = Object.keys(baseLocales)

/**
* Taking the ns array and generating those files for each language available.
* Uses require() because this file is bundled by webpack for the browser —
* webpack resolves require() at build time. Node-only APIs like fs or
* import.meta.dirname do not work here.
*/
const messagesByLocale = ns.reduce((acc, n) => {
supportedLngs.forEach((lng) => {
if (!acc[lng]) acc[lng] = {}
const messagesByLocale = ns.reduce(
(acc, n) => {
supportedLngs.forEach((lng) => {
if (!acc[lng]) acc[lng] = {}

try {
acc[lng] = {
...acc[lng],
[n]: {
...acc[lng][n],
...require(`../src/intl/${lng}/${n}.json`),
},
try {
acc[lng] = {
...acc[lng],
[n]: {
...acc[lng][n],
...require(`../src/intl/${lng}/${n}.json`),
},
}
} catch {
acc[lng] = {
...acc[lng],
[n]: {
...acc[lng][n],
...require(`../src/intl/en/${n}.json`),
},
}
}
} catch {
acc[lng] = {
...acc[lng],
[n]: {
...acc[lng][n],
...require(`../src/intl/en/${n}.json`),
},
}
}
})
})

return acc
}, {})
console.log(
"🚀 ~ constresources:Resource=ns.reduce ~ resources:",
messagesByLocale
return acc
},
{} as Record<string, Record<string, Record<string, string>>>
)

const nextIntl = {
Expand Down
12 changes: 6 additions & 6 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import isChromatic from "chromatic/isChromatic"
import { MotionGlobalConfig } from "motion/react"
import { IBM_Plex_Mono, Inter } from "next/font/google"
import type { Preview } from "@storybook/react"
import type { Preview } from "@storybook/nextjs"

import ThemeProvider from "@/components/ThemeProvider"
import { TooltipProvider } from "@/components/ui/tooltip"
Expand Down Expand Up @@ -40,10 +40,6 @@ export const breakpointSet: [token: string, value: string][] = [
]

const preview: Preview = {
globals: {
locale: "en",
locales: baseLocales,
},
decorators: [
withNextThemes({
themes: {
Expand Down Expand Up @@ -81,7 +77,7 @@ const preview: Preview = {
layout: "centered",
// Modify viewport selection to match Chakra breakpoints (or custom breakpoints)
viewport: {
viewports: breakpointSet.reduce<{
options: breakpointSet.reduce<{
[token: string]: {
name: string
styles: Record<"width" | "height", string>
Expand All @@ -100,6 +96,10 @@ const preview: Preview = {
}, {}),
},
},
initialGlobals: {
locale: "en",
locales: baseLocales,
},
}

export default preview
2 changes: 1 addition & 1 deletion .storybook/theme.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { create } from "@storybook/theming"
import { create } from "storybook/theming"

export default create({
base: "dark",
Expand Down
2 changes: 1 addition & 1 deletion .storybook/withNextThemes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
type DataAttributeStrategyConfiguration,
DecoratorHelpers,
} from "@storybook/addon-themes"
import type { Decorator } from "@storybook/react/*"
import type { Decorator } from "@storybook/nextjs"

const { initializeThemeState, pluckThemeFromContext } = DecoratorHelpers

Expand Down
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ pnpm events-import # Import community events
6. **Consider i18n** - All user-facing text should be translatable (use `getTranslations` and `getLocale`)
7. **Mobile-first** - Design for mobile, enhance for desktop
8. **Accessibility** - Use Radix primitives, semantic HTML
9. **Use locale-aware formatting wrappers** - Use `numberFormat()` from `src/lib/utils/numbers.ts` instead of `new Intl.NumberFormat()`, and `dateTimeFormat()` from `src/lib/utils/date.ts` instead of `new Intl.DateTimeFormat()` / `.toLocaleDateString()` / `.toLocaleTimeString()`. Both enforce correct numbering systems and calendar for Urdu and Arabic locales.

### Component Development

Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2195,6 +2195,10 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<tr>
<td align="center" valign="top" width="14.28%"><a href="https://mushow.uk/"><img src="https://avatars.githubusercontent.com/u/105550256?v=4?s=100" width="100px;" alt="0xMushow"/><br /><sub><b>0xMushow</b></sub></a><br /><a href="#maintenance-0xMushow" title="Maintenance">🚧</a></td>
<td align="center" valign="top" width="14.28%"><a href="http://samlaf.github.io/"><img src="https://avatars.githubusercontent.com/u/9342524?v=4?s=100" width="100px;" alt="Samuel Laferriere"/><br /><sub><b>Samuel Laferriere</b></sub></a><br /><a href="#content-samlaf" title="Content">🖋</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/0xSachinK"><img src="https://avatars.githubusercontent.com/u/73331595?v=4?s=100" width="100px;" alt="Sachin"/><br /><sub><b>Sachin</b></sub></a><br /><a href="#maintenance-0xSachinK" title="Maintenance">🚧</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/nxxck"><img src="https://avatars.githubusercontent.com/u/48026464?v=4?s=100" width="100px;" alt="nxxck"/><br /><sub><b>nxxck</b></sub></a><br /><a href="#content-nxxck" title="Content">🖋</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Nexonik2"><img src="https://avatars.githubusercontent.com/u/262324427?v=4?s=100" width="100px;" alt="Nexonik"/><br /><sub><b>Nexonik</b></sub></a><br /><a href="#content-nexonik2" title="Content">🖋</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/lo996"><img src="https://avatars.githubusercontent.com/u/136587632?v=4?s=100" width="100px;" alt="lo996"/><br /><sub><b>lo996</b></sub></a><br /><a href="#maintenance-lo996" title="Maintenance">🚧</a></td>
</tr>
</tbody>
</table>
Expand Down
7 changes: 2 additions & 5 deletions app/[locale]/10years/_components/TenYearHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ import Morpher from "@/components/Morpher/lazy"
import TenYearBackgroundImage from "@/public/images/10-year-anniversary/10-year-background.png"
import TenYearGraphicImage from "@/public/images/10-year-anniversary/10-year-graphic.png"

const TenYearHero = async ({ locale }: { locale: string }) => {
const t = await getTranslations({
locale,
namespace: "page-10-year-anniversary",
})
const TenYearHero = async () => {
const t = await getTranslations("page-10-year-anniversary")

const WORDS = [
t("page-10-year-censorship-resistance"),
Expand Down
8 changes: 5 additions & 3 deletions app/[locale]/10years/_components/torchHoldersData.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { dateTimeFormat } from "@/lib/utils/date"

/**
* Pre-computed static torch holders data
* This data is final and will not be updated (the torch has been burned)
Expand Down Expand Up @@ -229,13 +231,13 @@ export const extractTwitterHandle = (twitterUrl: string): string | null => {

export const formatTorchDate = (timestamp: number): string => {
const date = new Date(timestamp * 1000)
const month = date.toLocaleDateString("en-US", { month: "long" })
const month = dateTimeFormat("en-US", { month: "long" }).format(date)
const day = date.getDate().toString().padStart(2, "0")
const time = date.toLocaleTimeString("en-US", {
const time = dateTimeFormat("en-US", {
hour: "numeric",
minute: "2-digit",
hour12: true,
})
}).format(date)

return `${month} ${day}, ${time}`
}
Expand Down
14 changes: 3 additions & 11 deletions app/[locale]/10years/_components/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getLocale, getTranslations } from "next-intl/server"
import { getTranslations } from "next-intl/server"

import { formatDate, isValidDate } from "@/lib/utils/date"

Expand Down Expand Up @@ -46,11 +46,7 @@ export const parseStoryDates = (
}))

export const getInnovationCards = async (): Promise<InnovationCard[]> => {
const locale = await getLocale()
const t = await getTranslations({
locale,
namespace: "page-10-year-anniversary",
})
const t = await getTranslations("page-10-year-anniversary")
return [
{
image: EthereumLaunchImage,
Expand Down Expand Up @@ -80,11 +76,7 @@ export const getInnovationCards = async (): Promise<InnovationCard[]> => {
}

export const getAdoptionCards = async (): Promise<AdoptionCard[]> => {
const locale = await getLocale()
const t = await getTranslations({
locale,
namespace: "page-10-year-anniversary",
})
const t = await getTranslations("page-10-year-anniversary")
return [
{
image: Adoption1Image,
Expand Down
4 changes: 1 addition & 3 deletions app/[locale]/10years/page-jsonld.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ export default async function TenYearJsonLD({
locale: string
contributors: FileContributor[]
}) {
const t = await getTranslations({
namespace: "page-10-year-anniversary",
})
const t = await getTranslations("page-10-year-anniversary")

const url = normalizeUrlForJsonLd(locale, "/10years/")

Expand Down
12 changes: 3 additions & 9 deletions app/[locale]/10years/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,7 @@ const Page = async (props: { params: Promise<PageParams> }) => {
const requiredNamespaces = getRequiredNamespacesForPage("/10years")
const messages = pick(allMessages, requiredNamespaces)

const t = await getTranslations({
locale,
namespace: "page-10-year-anniversary",
})
const t = await getTranslations("page-10-year-anniversary")

const innovationCards = await getInnovationCards()
const adoptionCards = await getAdoptionCards()
Expand All @@ -74,7 +71,7 @@ const Page = async (props: { params: Promise<PageParams> }) => {
<>
<TenYearJsonLD locale={locale} contributors={contributors} />
<MainArticle className="mx-auto flex w-full flex-col items-center">
<TenYearHero locale={locale} />
<TenYearHero />

<div
className={cn(
Expand Down Expand Up @@ -382,10 +379,7 @@ export async function generateMetadata(props: {
const params = await props.params
const { locale } = params

const t = await getTranslations({
locale,
namespace: "page-10-year-anniversary",
})
const t = await getTranslations("page-10-year-anniversary")

return await getMetadata({
locale,
Expand Down
2 changes: 1 addition & 1 deletion app/[locale]/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export async function generateMetadata(props: {
slug,
})
} catch (error) {
const t = await getTranslations({ locale, namespace: "common" })
const t = await getTranslations("common")

// Return basic metadata for invalid paths
return {
Expand Down
2 changes: 1 addition & 1 deletion app/[locale]/apps/[application]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const Page = async (props: {
setRequestLocale(locale)

// Get translations
const t = await getTranslations({ locale, namespace: "page-apps" })
const t = await getTranslations("page-apps")

// Get i18n messages
const allMessages = await getMessages({ locale })
Expand Down
Loading
Loading