From 994c2a1ce2bba5c3716afbdec6d0ab3926d4cc18 Mon Sep 17 00:00:00 2001 From: camperbot Date: Mon, 10 May 2021 19:48:45 +0530 Subject: [PATCH] chore(i18n,curriculum): update translations (#42080) --- .../jquery/remove-an-element-using-jquery.md | 2 +- .../redux/register-a-store-listener.md | 10 ++++++++-- .../jquery/remove-an-element-using-jquery.md | 2 +- .../redux/register-a-store-listener.md | 10 ++++++++-- 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/curriculum/challenges/chinese-traditional/03-front-end-libraries/jquery/remove-an-element-using-jquery.md b/curriculum/challenges/chinese-traditional/03-front-end-libraries/jquery/remove-an-element-using-jquery.md index cdb4241b31..20b8d6a13b 100644 --- a/curriculum/challenges/chinese-traditional/03-front-end-libraries/jquery/remove-an-element-using-jquery.md +++ b/curriculum/challenges/chinese-traditional/03-front-end-libraries/jquery/remove-an-element-using-jquery.md @@ -12,7 +12,7 @@ dashedName: remove-an-element-using-jquery jQuery 有一個 `.remove()` 方法,能完全移除 HTML 標籤。 -用 `.remove()` 方法從頁面移除 `target4` 標籤。 +用 `.remove()` 方法從頁面移除 `#target4` 元素。 # --hints-- diff --git a/curriculum/challenges/chinese-traditional/03-front-end-libraries/redux/register-a-store-listener.md b/curriculum/challenges/chinese-traditional/03-front-end-libraries/redux/register-a-store-listener.md index c358c92440..407e10349f 100644 --- a/curriculum/challenges/chinese-traditional/03-front-end-libraries/redux/register-a-store-listener.md +++ b/curriculum/challenges/chinese-traditional/03-front-end-libraries/redux/register-a-store-listener.md @@ -32,10 +32,16 @@ assert( 應該有一個監聽函數 `store.subscribe` 訂閱 store。 ```js -(getUserInput) => assert(getUserInput('index').includes('store.subscribe(')); +(getUserInput) => assert(getUserInput('index').match(/store\s*\.\s*subscribe\(/gm)); ``` -在更新 store 時,`store.subscribe` 應該在回調中使全局變量 `count` 增加。 +`store.subscribe` 應該收到一個函數。 + +```js +(getUserInput) => assert(getUserInput('index').match(/(\s*function\s*)|(\s*\(\s*\)\s*=>)/gm)) +``` + +在更新 store 時,`store.subscribe` 應該在回調中使全局變量 `count` 的值增加。 ```js assert(store.getState() === count); diff --git a/curriculum/challenges/chinese/03-front-end-libraries/jquery/remove-an-element-using-jquery.md b/curriculum/challenges/chinese/03-front-end-libraries/jquery/remove-an-element-using-jquery.md index 3bc31c7138..38b77a357e 100644 --- a/curriculum/challenges/chinese/03-front-end-libraries/jquery/remove-an-element-using-jquery.md +++ b/curriculum/challenges/chinese/03-front-end-libraries/jquery/remove-an-element-using-jquery.md @@ -12,7 +12,7 @@ dashedName: remove-an-element-using-jquery jQuery 有一个 `.remove()` 方法,能完全移除 HTML 标签。 -用 `.remove()` 方法从页面移除 `target4` 标签。 +用 `.remove()` 方法从页面移除 `#target4` 元素。 # --hints-- diff --git a/curriculum/challenges/chinese/03-front-end-libraries/redux/register-a-store-listener.md b/curriculum/challenges/chinese/03-front-end-libraries/redux/register-a-store-listener.md index 8276856270..f86af17dca 100644 --- a/curriculum/challenges/chinese/03-front-end-libraries/redux/register-a-store-listener.md +++ b/curriculum/challenges/chinese/03-front-end-libraries/redux/register-a-store-listener.md @@ -32,10 +32,16 @@ assert( 应该有一个监听函数 `store.subscribe` 订阅 store。 ```js -(getUserInput) => assert(getUserInput('index').includes('store.subscribe(')); +(getUserInput) => assert(getUserInput('index').match(/store\s*\.\s*subscribe\(/gm)); ``` -在更新 store 时,`store.subscribe` 应该在回调中使全局变量 `count` 增加。 +`store.subscribe` 应该收到一个函数。 + +```js +(getUserInput) => assert(getUserInput('index').match(/(\s*function\s*)|(\s*\(\s*\)\s*=>)/gm)) +``` + +在更新 store 时,`store.subscribe` 应该在回调中使全局变量 `count` 的值增加。 ```js assert(store.getState() === count);