Skip to content

Commit

Permalink
Enable Chinese Lesson 4
Browse files Browse the repository at this point in the history
  • Loading branch information
enlight committed Feb 10, 2018
1 parent 3f78ceb commit 418586e
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 2 deletions.
40 changes: 40 additions & 0 deletions zh/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,23 @@
],
"zombieDesc": "A Level 3 CryptoZombie",
"shareLinkText": "I just completed #CryptoZombies Lesson 3! Check out my zombie army:"
},
"lesson4": {
"achievementsUnlocked": "Achievements Unlocked:",
"zombieUpgraded": "{zombieName} has been upgraded to Level {levelNum}!",
"newZombieAdded": "You've added a new Level 1 zombie to your army!",
"header": [
"Congratulations! You have completed {lesson4} of CryptoZombies!",
"Show off your zombie army to your friends!",
"Share this URL so your friends can check out your army:"
],
"footer": [
"Lesson 5 coming in 1-2 weeks",
"You'll get an email from us as soon as it's ready.",
"In the meantime, join us on {telegramLink}, or follow our {twitterLink} to join the conversation!"
],
"zombieDesc": "A Level {levelNum} CryptoZombie",
"shareLinkText": "I just completed #CryptoZombies Lesson 4, and defeated the evil IOTA zombie! Try it out yourself:"
}
},
"zombieBattle": {
Expand Down Expand Up @@ -130,6 +147,12 @@
"nameInputPlaceholder": "取个名字",
"defaultZombieDesc": "CryptoZombie一级"
},
"battleArena": {
"IOTAslain": "IOTA has been slain in battle!",
"winCount": "Your Zombie's Win Count:",
"iotaLose": "IOTA's Loss Count",
"newZombie": "New Zombie Created"
},
"sharePage": {
"pageTitle": "看我的CryptoZombie {zombieName}!",
"presents": "隆重宣布",
Expand Down Expand Up @@ -193,6 +216,23 @@
"Want to build your own CryptoZombie army and join the ranks?",
"Learn to build your own games on Ethereum for FREE with CryptoZombies! Get started now:"
]
},
"lesson4": {
"achievementPreamble": [
"Your friend has completed CryptoZombies Lesson 4, and defeated the evil IOTA zombie!",
"Go ahead and try it for yourself to the left. Use your friend's army to engage in battle!",
"In order to complete Lesson 4 of CryptoZombies, your friend learned about:"
],
"achievements": [
"Payable functions, and how to earn money from your Ethereum-based games",
"Withdrawing ETH from smart contracts",
"Random number generation & security on Ethereum",
"And more!"
],
"callToAction": [
"Want to build your own CryptoZombie army and join the ranks?",
"Learn to build your own games on Ethereum for FREE with CryptoZombies! Get started now:"
]
}
}
}
36 changes: 34 additions & 2 deletions zh/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,22 @@ import l3_ch12 from './3/12-forloops.md'
import l3_ch13 from './3/13-wrappingitup.md'
import l3_complete from './3/14-lessoncomplete.md'

// lesson4
import l4_overview from './4/00-overview.md'
import l4_payable from './4/payable.md'
import l4_withdraw from './4/withdraw.md'
import l4_ch1 from './4/battle-01.md'
import l4_ch2 from './4/battle-02.md'
import l4_ch3 from './4/battle-03.md'
import l4_ch4 from './4/battle-04.md'
import l4_ch5 from './4/battle-05.md'
import l4_ch6 from './4/battle-06.md'
import l4_ch7 from './4/battle-07.md'
import l4_ch8 from './4/battle-08.md'
import l4_ch9 from './4/battle-09.md'
import l4_ch10 from './4/wrappingitup.md'
import l4_complete from './4/lessoncomplete.md'

// chapterList is an ordered array of chapters. The order represents the order of the chapters.
// chapter index will be 1-based and not zero-based. First chapter is 1

Expand All @@ -75,8 +91,8 @@ export default {
events,
web3js,
lessoncomplete
]
, 2: [
],
2: [
l2_overview,
overview,
mappings,
Expand Down Expand Up @@ -110,5 +126,21 @@ export default {
l3_ch12,
l3_ch13,
l3_complete
],
4: [
l4_overview,
l4_payable,
l4_withdraw,
l4_ch1,
l4_ch2,
l4_ch3,
l4_ch4,
l4_ch5,
l4_ch6,
l4_ch7,
l4_ch8,
l4_ch9,
l4_ch10,
l4_complete
]
}

0 comments on commit 418586e

Please sign in to comment.