Skip to content

Commit a8706f1

Browse files
authored
docs(sideBar): Translate sidebar menu and page config
### 描述 <!-- 请在此处插入您的描述,并提供有关此PR正在解决的 “内容” 的特别信息 --> 翻译`config.ts`剩余未翻译的侧边栏 ### 附加上下文 <!-- 例如,你有什么想让代码审核的人重点关注的内容。 --> #739 #773
1 parent 9cc6c56 commit a8706f1

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

.vitepress/config.ts

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -282,12 +282,12 @@ export default ({ mode }: { mode: string }) => {
282282
{
283283
text: '什么是浏览器模式',
284284
link: '/guide/browser/why',
285-
docFooterText: 'Why Browser Mode | Browser Mode',
285+
docFooterText: '什么是浏览器模式 | 浏览器模式',
286286
},
287287
{
288288
text: '快速起步',
289289
link: '/guide/browser/',
290-
docFooterText: 'Getting Started | Browser Mode',
290+
docFooterText: '快速起步 | 浏览器模式',
291291
},
292292
],
293293
},
@@ -298,22 +298,22 @@ export default ({ mode }: { mode: string }) => {
298298
{
299299
text: '浏览器模式配置',
300300
link: '/guide/browser/config',
301-
docFooterText: 'Browser Config Reference | Browser Mode',
301+
docFooterText: '浏览器模式配置 | 浏览器模式',
302302
},
303303
{
304304
text: '配置 Playwright',
305305
link: '/guide/browser/playwright',
306-
docFooterText: 'Configuring Playwright | Browser Mode',
306+
docFooterText: '配置 Playwright | 浏览器模式',
307307
},
308308
{
309309
text: '配置 WebdriverIO',
310310
link: '/guide/browser/webdriverio',
311-
docFooterText: 'Configuring WebdriverIO | Browser Mode',
311+
docFooterText: '配置 WebdriverIO | 浏览器模式',
312312
},
313313
{
314314
text: 'Configuring Preview',
315315
link: '/guide/browser/preview',
316-
docFooterText: 'Configuring Preview | Browser Mode',
316+
docFooterText: 'Configuring Preview | 浏览器模式',
317317
},
318318
],
319319
},
@@ -322,29 +322,29 @@ export default ({ mode }: { mode: string }) => {
322322
collapsed: false,
323323
items: [
324324
{
325-
text: '上下文「Context API',
325+
text: 'Context API',
326326
link: '/guide/browser/context',
327-
docFooterText: 'Context API | Browser Mode',
327+
docFooterText: 'Context API | 浏览器模式',
328328
},
329329
{
330-
text: '交互「Interactivity API',
330+
text: 'Interactivity API',
331331
link: '/guide/browser/interactivity-api',
332-
docFooterText: 'Interactivity API | Browser Mode',
332+
docFooterText: 'Interactivity API | 浏览器模式',
333333
},
334334
{
335-
text: '定位「Locators',
335+
text: 'Locators',
336336
link: '/guide/browser/locators',
337-
docFooterText: 'Locators | Browser Mode',
337+
docFooterText: 'Locators | 浏览器模式',
338338
},
339339
{
340340
text: 'Assertion API',
341341
link: '/guide/browser/assertion-api',
342-
docFooterText: 'Assertion API | Browser Mode',
342+
docFooterText: 'Assertion API | 浏览器模式',
343343
},
344344
{
345345
text: 'Commands API',
346346
link: '/guide/browser/commands',
347-
docFooterText: 'Commands | Browser Mode',
347+
docFooterText: 'Commands API | 浏览器模式',
348348
},
349349
],
350350
},
@@ -355,30 +355,30 @@ export default ({ mode }: { mode: string }) => {
355355
{
356356
text: '多种设置',
357357
link: '/guide/browser/multiple-setups',
358-
docFooterText: 'Multiple Setups | Browser Mode',
358+
docFooterText: '多种设置 | 浏览器模式',
359359
},
360360
{
361361
text: '组件测试',
362362
link: '/guide/browser/component-testing',
363-
docFooterText: '组件测试 | Browser Mode',
363+
docFooterText: '组件测试 | 浏览器模式',
364364
},
365365
{
366366
text: '可视化回归测试',
367367
link: '/guide/browser/visual-regression-testing',
368-
docFooterText: '可视化回归测试 | Browser Mode',
368+
docFooterText: '可视化回归测试 | 浏览器模式',
369369
},
370370
{
371371
text: '跟踪查看器',
372372
link: '/guide/browser/trace-view',
373-
docFooterText: 'Trace Viewer | Browser Mode',
373+
docFooterText: '跟踪查看器 | 浏览器模式',
374374
},
375375
],
376376
},
377377
{
378378
items: [
379379
...footer(),
380380
{
381-
text: 'Node API 索引',
381+
text: 'Node API',
382382
link: '/advanced/api/',
383383
},
384384
],
@@ -436,15 +436,15 @@ export default ({ mode }: { mode: string }) => {
436436
link: '/advanced/api/plugin',
437437
},
438438
{
439-
text: '运行器「Runner」 API',
439+
text: '运行器 API',
440440
link: '/advanced/runner',
441441
},
442442
{
443-
text: 'Reporters API',
443+
text: '报告器 API',
444444
link: '/advanced/api/reporters',
445445
},
446446
{
447-
text: 'Task Metadata',
447+
text: '任务元数据',
448448
link: '/advanced/metadata',
449449
},
450450
],
@@ -454,15 +454,15 @@ export default ({ mode }: { mode: string }) => {
454454
collapsed: false,
455455
items: [
456456
{
457-
text: 'Running Tests',
457+
text: '运行测试',
458458
link: '/advanced/guide/tests',
459459
},
460460
{
461-
text: 'Extending Reporters',
461+
text: '扩展报告器',
462462
link: '/advanced/reporters',
463463
},
464464
{
465-
text: 'Custom Pool',
465+
text: '自定义运行池',
466466
link: '/advanced/pool',
467467
},
468468
],
@@ -496,7 +496,7 @@ export default ({ mode }: { mode: string }) => {
496496
link: '/guide/browser',
497497
},
498498
{
499-
text: 'Node API 索引',
499+
text: 'Node API',
500500
link: '/advanced/api',
501501
},
502502
{
@@ -521,7 +521,7 @@ function footer(): DefaultTheme.SidebarItem[] {
521521
link: '/config/',
522522
},
523523
{
524-
text: 'Test API 索引',
524+
text: 'Test API',
525525
link: '/api/',
526526
},
527527
]

0 commit comments

Comments
 (0)