Skip to content

Commit 93021cb

Browse files
committed
fix: 修复setInterval-002高级测试页面的国际化问题,确保code标签在翻译后保留
1 parent 2d04fed commit 93021cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/i18n/i18n-case-detail.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ class I18nCaseDetail {
187187
: 'This is a test case that uses <code>setInterval</code> to execute the debugger statement in a loop.';
188188
}
189189
else if (titleText.includes('setInterval') && (titleText.includes('高级') || titleText.includes('Advanced'))) {
190-
description.textContent = this.i18n.currentLang === 'zh-CN'
191-
? '这是一个使用 setInterval 的高级变体执行 debugger 语句的测试用例。此测试使用了字符串拼接和立即执行函数表达式来构造并执行 debugger 语句。'
192-
: 'This is a test case that uses an advanced variant of setInterval to execute the debugger statement. This test uses string concatenation and immediately invoked function expressions to construct and execute the debugger statement.';
190+
description.innerHTML = this.i18n.currentLang === 'zh-CN'
191+
? '这是一个使用 <code>setInterval</code> 的高级变体执行 debugger 语句的测试用例。此测试使用了字符串拼接和立即执行函数表达式来构造并执行 debugger 语句。'
192+
: 'This is a test case that uses an advanced variant of <code>setInterval</code> to execute the debugger statement. This test uses string concatenation and immediately invoked function expressions to construct and execute the debugger statement.';
193193
}
194194
else if (titleText.includes('数组') || titleText.includes('Array')) {
195195
description.textContent = this.i18n.currentLang === 'zh-CN'

0 commit comments

Comments
 (0)