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

This commit is contained in:
camperbot
2021-11-17 03:53:39 -08:00
committed by GitHub
parent 8a785e92f0
commit 383bafa064
45 changed files with 580 additions and 436 deletions

View File

@ -1,6 +1,6 @@
---
id: 59669d08d75b60482359409f
title: Date format
title: 日期格式
challengeType: 5
forumTopicId: 302243
dashedName: date-format
@ -8,15 +8,15 @@ dashedName: date-format
# --description--
Return an array with two date strings of the current date with the following specifications:
返回一個包含兩個當前日期字符串的數組,要求如下:
- The first string's date order should be the year number, month number, and day number separated by dashes (`-`).
- The first string's year should be four digits in length.
- The first string's month and day should not contain any leading zeros.
- The second string's weekday and month names should not be abbreviated.
- The second string's day should not contain any leading zeros.
- 第一個字符串的日期順序爲年、月、日,中間用破折號 (`-`) 隔開。
- 第一個字符串的年份長度爲四位數。
- 第一個字符串的月份和日期不能包含任何前導零。
- 第二個字符串的星期名稱和月份名稱不能縮寫。
- 第二個字符串的日期不能包含任何前導零。
Example outputs:
示例輸出:
```js
['2007-11-23', 'Friday, November 23, 2007']
@ -25,25 +25,25 @@ Example outputs:
# --hints--
`getDateFormats` should be a function.
`getDateFormats` 應該是一個函數。
```js
assert(typeof getDateFormats === 'function');
```
`getDateFormats` should return an object.
`getDateFormats` 應該返回一個對象。
```js
assert(typeof getDateFormats() === 'object');
```
`getDateFormats` should return an array with 2 elements.
`getDateFormats` 應該返回一個包含兩個元素的數組。
```js
assert(getDateFormats().length === 2);
```
`getDateFormats` should return the correct date in the right format
`getDateFormats` 應該返回格式無誤的正確日期。
```js
assert.deepEqual(getDateFormats(), dates, equalsMessage);