feat(curriculum): restore seed + solution to Chinese (#40683)

* feat(tools): add seed/solution restore script

* chore(curriculum): remove empty sections' markers

* chore(curriculum): add seed + solution to Chinese

* chore: remove old formatter

* fix: update getChallenges

parse translated challenges separately, without reference to the source

* chore(curriculum): add dashedName to English

* chore(curriculum): add dashedName to Chinese

* refactor: remove unused challenge property 'name'

* fix: relax dashedName requirement

* fix: stray tag

Remove stray `pre` tag from challenge file.

Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>

Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
This commit is contained in:
Oliver Eyton-Williams
2021-01-13 03:31:00 +01:00
committed by GitHub
parent 0095583028
commit ee1e8abd87
4163 changed files with 57505 additions and 10540 deletions

View File

@@ -3,14 +3,15 @@ id: bd7158d8c442eddfaeb5bd10
title: 显示当地天气
challengeType: 3
videoUrl: ''
dashedName: show-the-local-weather
---
# --description--
**目标:** 构建一个功能类似于此的[CodePen.io](https://codepen.io)应用程序: [https](https://codepen.io/freeCodeCamp/full/bELRjV) **** [//codepen.io/freeCodeCamp/full/bELRjV](https://codepen.io) 。 **规则1** 不要查看示例项目的代码。自己搞清楚。 **规则2** 完成以下[用户故事](https://en.wikipedia.org/wiki/User_story) 。使用您需要的任何库或API。给它你自己的个人风格。 **用户故事:** 我可以在当前位置看到天气。 **用户故事:** 根据天气情况,我可以看到不同的图标或背景图像(例如雪山,炎热的沙漠)。 **用户故事:** 我可以按一个按钮在华氏温度和摄氏温度之间切换。 **注意:** 许多Internet浏览器现在需要HTTP Secure `https://` 连接才能通过HTML5 Geolocation获取用户的语言环境。因此我们建议使用HTML5 Geolocation获取用户位置然后使用freeCodeCamp Weather API <https://fcc-weather-api.glitch.me> 该API使用HTTP安全连接进行天气预报。此外请务必通过`https://`连接到[CodePen.io](https://codepen.io) 。如果卡住,请记得使用[Read-Search-Ask](https://forum.freecodecamp.org/t/how-to-get-help-when-you-are-stuck-coding/19514) 。完成后单击“我已完成此挑战”按钮并包含指向CodePen的链接。您可以通过Facebook上的朋友分享您的项目反馈。
# --hints--
# --solutions--
```js
// solution required
```