Skip to content

Commit a39d818

Browse files
authored
Merge pull request #2041 from ethereum/translate-metadata
Translate metadata
2 parents d0211b0 + a90f071 commit a39d818

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ethereum-org-website",
3-
"version": "2.12.3",
3+
"version": "2.12.4",
44
"description": "Website of ethereum.org",
55
"main": "index.js",
66
"repository": "git@github.com:ethereum/ethereum-org-website.git",

src/intl/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,6 +1301,7 @@
13011301
"page-get-eth-24-hrs": "(Last 24 hours)",
13021302
"transaction-fees": "transaction fees",
13031303
"page-dapps-title": "Decentralized applications (dapps)",
1304+
"page-dapps-desc": "Find an Ethereum application to try.",
13041305
"page-dapps-hero-header": "Ethereum-powered tools and services",
13051306
"page-dapps-hero-subtitle": "Dapps are a growing movement of applications that use Ethereum to disrupt business models or invent new ones.",
13061307
"page-dapps-what-are-dapps": "What are dapps?",

src/pages-conditional/dapps.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,8 +1042,9 @@ const DappsPage = ({ data }) => {
10421042
return (
10431043
<Page>
10441044
<PageMetadata
1045-
title="Decentralized applications (dapps)"
1046-
description="Find an Ethereum application to try."
1045+
title={translateMessageId("page-dapps-title", intl)}
1046+
description={translateMessageId("page-dapps-desc", intl)}
1047+
image={data.ogImage.childImageSharp.fixed.src}
10471048
/>
10481049
<Content>
10491050
<HeroContainer>
@@ -1601,6 +1602,13 @@ export const query = graphql`
16011602
}
16021603
}
16031604
}
1605+
ogImage: file(relativePath: { eq: "doge-computer.png" }) {
1606+
childImageSharp {
1607+
fixed(width: 1200) {
1608+
src
1609+
}
1610+
}
1611+
}
16041612
magicians: file(relativePath: { eq: "magicians.png" }) {
16051613
childImageSharp {
16061614
fluid(maxWidth: 300) {

0 commit comments

Comments
 (0)