Skip to content

Commit 246d251

Browse files
committed
use translations
1 parent c472e15 commit 246d251

File tree

1 file changed

+23
-13
lines changed

1 file changed

+23
-13
lines changed

tests/e2e/fixtures/testData.ts

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import en from "@/intl/en/common.json"
2+
import es from "@/intl/es/common.json"
3+
14
/**
25
* Test data and fixtures for e2e tests
36
*/
@@ -15,32 +18,39 @@ export const testData = {
1518

1619
navigation: {
1720
menu: [
18-
{ name: "Learn", subsections: ["Basics", "Ethereum Stack", "Advanced"] },
1921
{
20-
name: "Use",
22+
name: en["nav-learn-label"],
23+
subsections: [
24+
en["nav-learn-basics-label"],
25+
en["nav-learn-ethereum-stack-label"],
26+
en["nav-learn-advanced-label"],
27+
],
28+
},
29+
{
30+
name: en["nav-use-label"],
2131
subsections: [
22-
"Find wallets",
23-
"Get ETH",
24-
"Decentralized applications (dapps)",
32+
en["nav-use-find-wallets-label"],
33+
en["nav-use-get-eth-label"],
34+
en["nav-use-decentralized-applications-label"],
2535
],
2636
},
2737
{
28-
name: "Build",
38+
name: en["nav-build-label"],
2939
subsections: [
30-
"Builder's home",
31-
"Development documentation",
32-
"Learn by coding",
40+
en["nav-build-builders-home-label"],
41+
en["nav-build-development-documentation-label"],
42+
en["nav-build-learn-by-coding-label"],
3343
],
3444
},
3545
],
3646
},
3747

3848
content: {
3949
headings: {
40-
homepage: "Ethereum.org",
41-
findWallet: "Choose your wallet",
42-
notFoundEn: "we couldn't find that page",
43-
notFoundEs: "no hemos podido encontrar esa página",
50+
homepage: en["site-title"],
51+
findWallet: en["nav-find-wallet-label"],
52+
notFoundEn: en["we-couldnt-find-that-page"],
53+
notFoundEs: es["we-couldnt-find-that-page"],
4454
},
4555
},
4656
}

0 commit comments

Comments
 (0)