Skip to content

Commit 21db3e0

Browse files
committed
feat: add custom containers type localization translation
1 parent b5bad7d commit 21db3e0

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.vitepress/config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ export default ({ mode }: { mode: string }) => {
8383
},
8484
},
8585
markdown: {
86+
container: {
87+
tipLabel: '提示',
88+
warningLabel: '注意',
89+
dangerLabel: '警告',
90+
infoLabel: '说明',
91+
detailsLabel: '详情',
92+
},
8693
config(md) {
8794
md.use(tabsMarkdownPlugin)
8895
md.use(groupIconMdPlugin)

api/browser/assertions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: Assertion API | 浏览器模式
66

77
Vitest 默认提供了一组丰富的 DOM 断言,这些断言源自 [`@testing-library/jest-dom`](https://github.com/testing-library/jest-dom) 库,并增加了对定位器的支持以及内置的重试能力。
88

9-
::: tip TypeScript Support
9+
::: tip TypeScript 支持
1010
如果你正在使用 [TypeScript](/guide/browser/#typescript) 或希望在 `expect` 中获得正确的类型提示,请确保在某个地方引用了 `vitest/browser`。如果你从未从该模块导入过,可以在 `tsconfig.json` 覆盖范围内的任何文件中添加一个 `reference` 注释:
1111

1212
```ts

0 commit comments

Comments
 (0)