Skip to content

Commit ba8945b

Browse files
Merge remote-tracking branch 'upstream/dev' into feat/shadcn-switch
2 parents 135d278 + ede3e40 commit ba8945b

File tree

173 files changed

+2350
-1655
lines changed

Some content is hidden

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

173 files changed

+2350
-1655
lines changed

.all-contributorsrc

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12362,6 +12362,33 @@
1236212362
"contributions": [
1236312363
"content"
1236412364
]
12365+
},
12366+
{
12367+
"login": "tr1sm0s1n",
12368+
"name": "Mobin Mohanan",
12369+
"avatar_url": "https://avatars.githubusercontent.com/u/47410557?v=4",
12370+
"profile": "https://github.com/tr1sm0s1n",
12371+
"contributions": [
12372+
"content"
12373+
]
12374+
},
12375+
{
12376+
"login": "Baystef",
12377+
"name": "Adebayo Steve",
12378+
"avatar_url": "https://avatars.githubusercontent.com/u/36106823?v=4",
12379+
"profile": "https://github.com/Baystef",
12380+
"contributions": [
12381+
"code"
12382+
]
12383+
},
12384+
{
12385+
"login": "sanjanaynvsdl",
12386+
"name": "Sanjana",
12387+
"avatar_url": "https://avatars.githubusercontent.com/u/142678317?v=4",
12388+
"profile": "https://github.com/sanjanaynvsdl",
12389+
"contributions": [
12390+
"bug"
12391+
]
1236512392
}
1236612393
],
1236712394
"contributorsPerLine": 7,

.storybook/i18next.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export const ns = [
2121
"page-upgrades",
2222
"page-developers-index",
2323
"page-what-is-ethereum",
24+
"page-upgrades-index",
2425
] as const
2526
const supportedLngs = Object.keys(baseLocales)
2627

.storybook/main.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ const config: StorybookConfig = {
4747
},
4848
},
4949
webpackFinal: async (config) => {
50+
config.module = config.module || {}
51+
config.module.rules = config.module.rules || []
52+
5053
if (config.resolve) {
5154
config.resolve.plugins = [
5255
...(config.resolve.plugins || []),
@@ -55,6 +58,22 @@ const config: StorybookConfig = {
5558
}),
5659
]
5760
}
61+
62+
// This modifies the existing image rule to exclude .svg files
63+
// since you want to handle those files with @svgr/webpack
64+
const imageRule = config.module.rules.find((rule) =>
65+
rule?.["test"]?.test(".svg")
66+
)
67+
if (imageRule) {
68+
imageRule["exclude"] = /\.svg$/
69+
}
70+
71+
// Configure .svg files to be loaded with @svgr/webpack
72+
config.module.rules.push({
73+
test: /\.svg$/,
74+
use: ["@svgr/webpack"],
75+
})
76+
5877
return config
5978
},
6079
typescript: {

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1889,6 +1889,9 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
18891889
<td align="center" valign="top" width="14.28%"><a href="https://github.com/krishchvn"><img src="https://avatars.githubusercontent.com/u/58606754?v=4?s=100" width="100px;" alt="Krishnakumar Chavan"/><br /><sub><b>Krishnakumar Chavan</b></sub></a><br /><a href="#content-krishchvn" title="Content">🖋</a></td>
18901890
<td align="center" valign="top" width="14.28%"><a href="https://github.com/0xV4L3NT1N3"><img src="https://avatars.githubusercontent.com/u/33112835?v=4?s=100" width="100px;" alt="0xV4L3NT1N3"/><br /><sub><b>0xV4L3NT1N3</b></sub></a><br /><a href="#tool-0xV4L3NT1N3" title="Tools">🔧</a></td>
18911891
<td align="center" valign="top" width="14.28%"><a href="https://github.com/JoshDavisLight"><img src="https://avatars.githubusercontent.com/u/82784104?v=4?s=100" width="100px;" alt="Josh Davis"/><br /><sub><b>Josh Davis</b></sub></a><br /><a href="#content-JoshDavisLight" title="Content">🖋</a></td>
1892+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/tr1sm0s1n"><img src="https://avatars.githubusercontent.com/u/47410557?v=4?s=100" width="100px;" alt="Mobin Mohanan"/><br /><sub><b>Mobin Mohanan</b></sub></a><br /><a href="#content-tr1sm0s1n" title="Content">🖋</a></td>
1893+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Baystef"><img src="https://avatars.githubusercontent.com/u/36106823?v=4?s=100" width="100px;" alt="Adebayo Steve"/><br /><sub><b>Adebayo Steve</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=Baystef" title="Code">💻</a></td>
1894+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/sanjanaynvsdl"><img src="https://avatars.githubusercontent.com/u/142678317?v=4?s=100" width="100px;" alt="Sanjana"/><br /><sub><b>Sanjana</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/issues?q=author%3Asanjanaynvsdl" title="Bug reports">🐛</a></td>
18921895
</tr>
18931896
</tbody>
18941897
</table>

next.config.js

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,31 @@ module.exports = (phase, { defaultConfig }) => {
2727
test: /\.ya?ml$/,
2828
use: "yaml-loader",
2929
})
30-
config.module.rules.push({
31-
test: /\.svg$/,
32-
use: "@svgr/webpack",
33-
})
30+
31+
// SVG loader
32+
// Grab the existing rule that handles SVG imports
33+
const fileLoaderRule = config.module.rules.find((rule) =>
34+
rule.test?.test?.(".svg")
35+
)
36+
37+
config.module.rules.push(
38+
// Reapply the existing rule, but only for svg imports ending in ?url
39+
{
40+
...fileLoaderRule,
41+
test: /\.svg$/i,
42+
resourceQuery: /url/, // *.svg?url
43+
},
44+
// Convert all other *.svg imports to React components
45+
{
46+
test: /\.svg$/i,
47+
issuer: fileLoaderRule.issuer,
48+
resourceQuery: { not: [...fileLoaderRule.resourceQuery.not, /url/] }, // exclude if *.svg?url
49+
use: ["@svgr/webpack"],
50+
}
51+
)
52+
53+
// Modify the file loader rule to ignore *.svg, since we have it handled now.
54+
fileLoaderRule.exclude = /\.svg$/i
3455

3556
return config
3657
},

public/content/contributing/translation-program/translatathon/details/index.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,14 @@ All translations will also be subject to a thorough review before being added to
7171
</ul>
7272
</ExpandableCard>
7373

74-
<ExpandableCard title="Which languages can I translate into?">
75-
You can translate into any language! It is recommended to only translate into your native language to ensure sufficient quality, but in short, all language available in Crowdin are in scope for the Translatathon.
76-
77-
If you want to translate into a language that isn't available in Crowdin, reach out to us and we will add any language per request.
74+
<ExpandableCard title="Can I compete as part of a team?">
75+
<p>No. This year, the Translatathon will only have one main individual track and there will be no team competition.</p>
76+
<p>You can still team up with your friends and translate together, however everyone will be competing in the Translatathon as an individual and only the number of your individual translated words will count towards your final score.</p>
77+
</ExpandableCard>
7878

79+
<ExpandableCard title="Which languages can I translate into?">
80+
<p>You can translate into any language! It is recommended to only translate into your native language to ensure sufficient quality, but in short, all language available in Crowdin are in scope for the Translatathon.</p>
81+
<p>If you want to translate into a language that isn't available in Crowdin, reach out to us and we will add any language per request.</p>
7982
</ExpandableCard>
8083

8184
<ApplyNow />

public/content/contributing/translation-program/translatathon/index.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,17 @@ For more details, [see the full Terms & conditions](/contributing/translation-pr
7979

8080
<StepByStepInstructions />
8181

82+
## Prizes
83+
84+
<TranslatathonPrizes />
85+
8286
## Stay up to date
8387

84-
<!-- TODO: Uncomment when the hubs page is ready -->
85-
<!-- <TranslationHubCallout>
88+
<TranslationHubCallout>
8689
<h3 style={{margin:0}}>Translataton hubs</h3>
8790

88-
THis year we bring IRL community hugs to join local communities and help translate.
89-
90-
this hubs are located all over the world, find out if there is one close to you and join the community
91-
</TranslationHubCallout> -->
91+
This year we bring IRL community hugs to join local communities and help translate. These hubs are located all over the world, find out if there is one close to you and join the community!
92+
</TranslationHubCallout>
9293

9394
<TranslatathonCalendar />
9495

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
title: 2024 ethereum.org Translatathon
3+
lang: en
4+
template: translatathon
5+
---
6+
7+
![](./local-communities.png)
8+
9+
## Overview
10+
11+
The Translatathon brings together people from different expertise and cultures to collaborate on one goal: making Ethereum knowledge accessible in as many languages as possible. This year, with the support of local communities, we are bringing Translatathon Hubs to several cities worldwide, where people can get together, meet fellow Ethereum enthusiasts, and participate in the Translatathon.
12+
13+
<TwoColumnContent>
14+
<WhyWeDoItColumn>
15+
<h3>Why do we do it</h3>
16+
Translating is often a lonely task, but it doesn't have to be. By gathering participants in one place, they can enjoy the solitude of crafting the perfect translation while still taking breaks to socialize, have a coffee, and share the most challenging or funny terms they've encountered while translating.
17+
</WhyWeDoItColumn>
18+
<HowDoesItWorkColumn>
19+
<h3>How does it work</h3>
20+
Check the list of Translatathon Hubs to see if there's one happening in your city! Remember, the Translatathon is an online competition, so you can always participate from the comfort of your couch.
21+
</HowDoesItWorkColumn>
22+
</TwoColumnContent>
23+
24+
## List of Translatathon Hubs
25+
26+
<LocalCommunitiesList />
27+
28+
<ApplyNow />

0 commit comments

Comments
 (0)