Skip to content

Commit 40e51ec

Browse files
committed
i18n
1 parent 1504f1b commit 40e51ec

File tree

6 files changed

+19
-20
lines changed

6 files changed

+19
-20
lines changed

questions/describe-event-bubbling/en-US.langnostic.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"a8ff50ea",
3535
"3625d327",
3636
"ac7b2126",
37-
"92f262c4",
37+
"853c279d",
3838
"b37f85fb",
3939
"3c0717ad",
4040
"26112098",
@@ -78,7 +78,7 @@
7878
"a8ff50ea",
7979
"3625d327",
8080
"ac7b2126",
81-
"92f262c4",
81+
"853c279d",
8282
"b37f85fb",
8383
"3c0717ad",
8484
"26112098",

questions/describe-event-bubbling/zh-CN.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,18 +140,18 @@ function handleBuyClick(event) {
140140
```js
141141
// HTML:
142142
// <ul id="product-list">
143-
// <li><button id="item1-buy">立即购买</button></li>
144-
// <li><button id="item2-buy">立即购买</button></li>
143+
// <li><button id="item1-buy">Buy Now</button></li>
144+
// <li><button id="item2-buy">Buy Now</button></li>
145145
// </ul>
146146

147147
const productList = document.getElementById('product-list');
148148

149149
productList.addEventListener('click', handleBuyClick);
150150

151151
function handleBuyClick(event) {
152-
// 检查点击的元素是否是列表中的一个按钮
152+
// Check if the clicked element is a button within the list
153153
if (event.target.tagName.toLowerCase() === 'button') {
154-
console.log('点击了项目的购买按钮:', event.target.textContent);
154+
console.log('Buy button clicked for item:', event.target.id);
155155
}
156156
}
157157
```

questions/explain-the-differences-between-commonjs-modules-and-es-modules/en-US.langnostic.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"67a1d4f3",
2929
"ae22a9f0",
3030
"1f4770e5",
31-
"66926432"
31+
"2f1b469c"
3232
]
3333
},
3434
"targets": {
@@ -55,7 +55,7 @@
5555
"67a1d4f3",
5656
"ae22a9f0",
5757
"1f4770e5",
58-
"66926432"
58+
"2f1b469c"
5959
]
6060
}
6161
}

questions/explain-the-differences-between-commonjs-modules-and-es-modules/zh-CN.mdx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,8 @@ console.log(value); // 42
9393

9494
## 延伸阅读
9595

96-
* [JavaScript 模块 - MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules)
97-
* [CommonJS vs ES Modules: 从 require 到 import 的转变](https://nikolasbarwicki.com/articles/commonjs-vs-es-modules-the-shift-from-require-to-import/)
98-
* [模块,简介 - javascript.info](https://javascript.info/modules-intro)
99-
* [模块 - Eloquent Javascript](https://eloquentjavascript.net/10_modules.html)
100-
* [Node.js 中的 CommonJS vs. ES 模块](https://blog.logrocket.com/commonjs-vs-es-modules-node-js/)
101-
* [理解 JavaScript 中的 CommonJS vs. ES 模块](https://www.syncfusion.com/blogs/post/js-commonjs-vs-es-modules)
96+
* [JavaScript modules - MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules)
97+
* [Modules, introduction - javascript.info](https://javascript.info/modules-intro)
98+
* [Modules - Eloquent Javascript](https://eloquentjavascript.net/10_modules.html)
99+
* [CommonJS vs. ES modules in Node.js](https://blog.logrocket.com/commonjs-vs-es-modules-node-js/)
100+
* [Understanding CommonJS vs. ES Modules in JavaScript](https://www.syncfusion.com/blogs/post/js-commonjs-vs-es-modules)

questions/what-is-event-loop-what-is-the-difference-between-call-stack-and-task-queue/en-US.langnostic.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
"locale": "en-US",
99
"hashes": [
1010
"77da26a5",
11-
"db24c9d8",
11+
"4c4ebaf7",
1212
"def8dd56",
1313
"2b3223fd",
14-
"9f33f88c",
14+
"5060e7da",
1515
"910dc689",
1616
"2a7816d0",
1717
"ffd9a88",
@@ -40,10 +40,10 @@
4040
"targets": {
4141
"zh-CN": [
4242
"77da26a5",
43-
"db24c9d8",
43+
"4c4ebaf7",
4444
"def8dd56",
4545
"2b3223fd",
46-
"9f33f88c",
46+
"5060e7da",
4747
"910dc689",
4848
"2a7816d0",
4949
"ffd9a88",

questions/what-is-event-loop-what-is-the-difference-between-call-stack-and-task-queue/zh-CN.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ subtitle: call stack 和 task queue 之间有什么区别?
55

66
## TL;DR
77

8-
事件循环是 JavaScript 运行时环境内关于异步操作如何在 JavaScript 引擎中执行的概念。它的工作原理如下:
8+
事件循环是JavaScript运行时环境中的一个概念,涉及异步操作如何在JavaScript引擎中执行。它的工作原理如下:
99

1010
1. JavaScript 引擎开始执行脚本,将同步操作放在调用堆栈上。
1111
2. 当遇到异步操作(例如,`setTimeout()`、HTTP 请求)时,它会被卸载到相应的 Web API 或 Node.js API,以在后台处理该操作。
@@ -19,7 +19,7 @@ subtitle: call stack 和 task queue 之间有什么区别?
1919

2020
不幸的是,仅使用文本很难很好地解释事件循环。我们建议查看以下优秀的视频之一,解释事件循环:
2121

22-
* [JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue](https://www.youtube.com/watch?v=eiC58R16hb8) (2024): Lydia Hallie JavaScript 方面的热门教育家,这是解释事件循环的最新最佳视频。对于那些喜欢详细的基于文本的解释的人,还有一个[配套博客文章](https://www.lydiahallie.com/blog/event-loop)
22+
* [JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue](https://www.youtube.com/watch?v=eiC58R16hb8) (2024): Lydia Hallie 是一个受欢迎的 JavaScript 教育者,这是最近解释事件循环的最佳视频。对于那些喜欢详细的基于文本的解释的人,还有一个[随附的博客文章](https://www.lydiahallie.com/blog/event-loop)
2323
* [In the Loop](https://www.youtube.com/watch?v=cCOL7MC4Pl0) (2018): 来自 Chrome 团队的 Jake Archibald 在 JSConf 2018 期间提供了事件循环的视觉演示,解释了不同类型的任务。
2424
* [What the heck is the event loop anyway?](https://www.youtube.com/watch?v=8aGhZQkoFbQ) (2014): Philip Robert 在 JSConf 2014 上发表了这次史诗般的演讲,这是 YouTube 上观看次数最多的 JavaScript 视频之一。
2525

0 commit comments

Comments
 (0)