chore(i18n,curriculum): update translations (#44346)

This commit is contained in:
camperbot
2021-12-03 01:21:50 -08:00
committed by GitHub
parent 6af8ee6528
commit cd4d53f4c0
10 changed files with 90 additions and 74 deletions

View File

@@ -9,9 +9,9 @@ dashedName: use-the-css-transform-property-skewx-to-skew-an-element-along-the-x-
# --description--
接下來要介紹的 `transform` 屬性是 `skewX()`:它使選擇的元素沿着 X 軸(橫向)翻轉指定的角度。
接下來要介紹的 `transform` 屬性是 `skewX()`:它使選擇的元素沿着 X 軸(橫向)傾斜指定的角度。
下面的代碼沿着 X 軸翻轉段落元素 -32 度。
下面的代碼沿着 X 軸傾斜段落元素 -32 度。
```css
p {
@@ -21,11 +21,11 @@ p {
# --instructions--
使用 `transform` 屬性沿 X 軸翻轉 id 爲 `bottom` 的元素 24 度。
使用 `transform` 屬性沿 X 軸傾斜 id 爲 `bottom` 的元素 24 度。
# --hints--
id 爲 `bottom` 的元素應該沿着 X 軸翻轉 24 度。
id 爲 `bottom` 的元素應該沿着 X 軸傾斜 24 度。
```js
assert(code.match(/#bottom\s*?{\s*?.*?\s*?transform:\s*?skewX\(24deg\);/g));

View File

@@ -20,11 +20,13 @@ dashedName: use-the--env-file
當向 `/json` 發 GET 請求時,如果 `process.env.MESSAGE_STYLE` 的值爲 `uppercase`,那麼上一次挑戰中的路由處理程序返回的對象的消息則應該大寫。 響應對象應該是 `{"message": "Hello json"}` or `{"message": "HELLO JSON"}`,取決於 `MESSAGE_STYLE` 的值。
**注意:**如果你正在使用 Replit你無法創建一個 `.env` 文件。 相反,使用內置的 <dfn>SECRETS</dfn> 標籤添加變量。
**注意:** 如果你正在使用 Replit你無法創建一個 `.env` 文件。 相反,使用內置的 <dfn>SECRETS</dfn> 標籤添加變量。
如果你在本地工作,你將需要 `dotenv` 包。 它將環境變量從你的 `.env` 文件加載到 `process.env` 中。 使用 `npm install dotenv` 安裝它。 然後,在 `myApp.js` 文件的頂部,使用 `require('dotenv').config()` 導入和加載變量。
# --hints--
`/json` 響應的值,應該隨着環境變量 `MESSAGE_STYLE` 的變化而改變
`/json` 響應應該根據環境變量 `MESSAGE_STYLE` 改變
```js
(getUserInput) =>