diff --git a/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/basic-javascript/record-collection.md b/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/basic-javascript/record-collection.md index ca0254eb5cf..0e24434b6bc 100644 --- a/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/basic-javascript/record-collection.md +++ b/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/basic-javascript/record-collection.md @@ -21,8 +21,8 @@ dashedName: record-collection - 你的函數必須始終返回整個 `records` 對象。 - 如果 `value` 是空字符串,從專輯裏刪除指定的 `prop`。 -- If `prop` isn't `tracks` and `value` isn't an empty string, assign the `value` to that album's `prop`. -- If `prop` is `tracks` and value isn't an empty string, add the `value` to the end of the album's `tracks` array. You need to create this array first if the album does not have a `tracks` property. +- 如果 `prop` 不是 `tracks`,並且 `value` 不是一個空字符串,將 `value` 賦給那個專輯的 `prop`。 +- 如果 `prop` 是 `tracks`,並且值不是一個空字符串,將 `value` 添加到專輯的 `tracks` 數組的末尾。 如果相冊沒有一個 `tracks` 屬性,你需要先創建此數組。 **注意:** 將 `recordCollection` 對象的副本用於測試。 你不應該直接修改 `recordCollection` 對象。 diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-css-grid-by-building-a-magazine/6143d2842b497779bad947de.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-css-grid-by-building-a-magazine/6143d2842b497779bad947de.md index 116d0b65c35..d835bfb6e1c 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-css-grid-by-building-a-magazine/6143d2842b497779bad947de.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-css-grid-by-building-a-magazine/6143d2842b497779bad947de.md @@ -7,31 +7,31 @@ dashedName: step-26 # --description-- -To start your CSS, normalize the CSS rules by targeting all elements with `*`, including the `::before` and `::after` pseudo-selectors. +開始寫 CSS,請通過使用 `*` 定位所有元素來規範 CSS 規則,包括 `::before` 和 `::after` 僞選擇器。 -Set the `padding` and `margin` properties both to `0` and set the `box-sizing` property to `border-box`. +將 `padding` 和 `margin` 屬性均設置爲 `0`,並將 `box-sizing` 屬性設置爲 `border-box`。 # --hints-- -You should have a `*, ::before, ::after` selector. +你應該有一個 `*, ::before, ::after` 選擇器。 ```js assert(new __helpers.CSSHelp(document).getStyle('*, ::before, ::after')); ``` -Your `*, ::before, ::after` selector should have a `padding` property set to `0`. +你的 `*, ::before, ::after` 選擇器應該有一個 `padding` 屬性值爲 `0`。 ```js assert(new __helpers.CSSHelp(document).getStyle('*, ::before, ::after')?.padding === '0px'); ``` -Your `*, ::before, ::after` selector should have a `margin` property set to `0`. +你的 `*, ::before, ::after` 選擇器應該有一個 `margin` 屬性值爲 `0`。 ```js assert(new __helpers.CSSHelp(document).getStyle('*, ::before, ::after')?.margin === '0px'); ``` -Your `*, ::before, ::after` selector should have a `box-sizing` property set to `border-box`. +你的 `*, ::before, ::after` 選擇器應該有一個 `box-sizing` 屬性設置爲 `border-box`。 ```js assert(new __helpers.CSSHelp(document).getStyle('*, ::before, ::after')?.boxSizing === 'border-box'); diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-css-grid-by-building-a-magazine/6144d66a5358db0c80628757.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-css-grid-by-building-a-magazine/6144d66a5358db0c80628757.md index 31f3d29c15c..dad518849cc 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-css-grid-by-building-a-magazine/6144d66a5358db0c80628757.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-css-grid-by-building-a-magazine/6144d66a5358db0c80628757.md @@ -13,13 +13,13 @@ dashedName: step-27 # --hints-- -You should create an `html` selector. +你應該創建一個 `html` 選擇器。 ```js assert(new __helpers.CSSHelp(document).getStyle('html')); ``` -Your `html` selector should have a `font-size` property set to `62.5%`. +你的 `html` 選擇器應該將 `font-size` 屬性設置爲 `62.5%`。 ```js assert(new __helpers.CSSHelp(document).getStyle('html')?.fontSize === '62.5%'); diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d324f5915c929f36ae91d.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d324f5915c929f36ae91d.md index a5f81aff693..cb497ecba0f 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d324f5915c929f36ae91d.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d324f5915c929f36ae91d.md @@ -35,7 +35,7 @@ assert([...[...new __helpers.CSSHelp(document).getCSSRules('keyframes')].find(ru assert([...[...new __helpers.CSSHelp(document).getCSSRules('keyframes')].find(rule => rule?.name === 'wave')?.cssRules].some(css => css?.keyText === '40%')); ``` -You should have 4 waypoints in your keyframe. +你需要在關鍵幀中設置 4 個關鍵點。 ```js assert([...[...new __helpers.CSSHelp(document).getCSSRules('keyframes')].find(rule => rule?.name === 'wave')?.cssRules].length === 4); diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efc4f528d6a74d05e68af74.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efc4f528d6a74d05e68af74.md index d17f7b4b8eb..c2ddb9a58ff 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efc4f528d6a74d05e68af74.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efc4f528d6a74d05e68af74.md @@ -25,7 +25,7 @@ assert($('input[type="checkbox"]')[0]); assert.equal($('input[type="checkbox"]')[0].id, 'loving'); ``` -The text `Loving` should be wrapped in a `label` element. +文本 `Loving` 應該嵌套在新的 `label` 元素中。 ```js const checkboxInputElem = $('input[type="checkbox"]')[0]; @@ -71,7 +71,7 @@ const labelElem = document.querySelector('label[for="loving"]'); assert(labelElem.textContent.replace(/\s/g, '').match(/Loving/i)); ``` -There should be a space between your checkbox and your new `label` element. +你的複選框和新的 `label` 元素之間應該有一個空格。 ```js assert.match(code, />\s+