Skip to content

feat: add custom containers type localization translation#993

Merged
NoiseFan merged 1 commit into
vitest-dev:devfrom
NoiseFan:feat/container
Jun 5, 2026
Merged

feat: add custom containers type localization translation#993
NoiseFan merged 1 commit into
vitest-dev:devfrom
NoiseFan:feat/container

Conversation

@NoiseFan

@NoiseFan NoiseFan commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

在提交PR之前,请确保你执行以下操作:

  • 曾阅读过翻译须知
  • 检查是否已经有PR以同样的方式解决问题,以避免创建重复。
  • 在此PR中描述正在解决的问题,或引用它解决的问题(例如:fixes #123)。

描述

按照 翻译须知 中对于 alert 术语约定,添加自定义容器本地化翻译

附加上下文

具体效果:

image

在后续的翻译工作中,无需处理自定义的容器类型,保持原状即可。

正确示例

:::tip
Vitest 需要 Vite >=v6.4.0 和 Node >=v22.12.0
:::

::: warning 异步上下文
与 Node.js 不同,浏览器不具备自动的异步上下文传播能力。Vitest 在内部为测试执行处理这一点,但对于深度嵌套的异步代码中的自定义跨度,上下文可能不会自动传播。
:::

错误示例

:::tip 提示
Vitest 需要 Vite >=v6.4.0 和 Node >=v22.12.0
:::

@netlify

netlify Bot commented Jun 5, 2026

Copy link
Copy Markdown

Deploy Preview for cn-vitest ready!

Name Link
🔨 Latest commit 21db3e0
🔍 Latest deploy log https://app.netlify.com/projects/cn-vitest/deploys/6a224191dc611f000830ec83
😎 Deploy Preview https://deploy-preview-993--cn-vitest.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@NoiseFan

NoiseFan commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator Author

cc: @dogledogle 正确解决方案

事发位置:
f0bf2aa#diff-f507d3f43b22290cfe891269d43acec96372c8416b2a6c79d7436af5f479a380R44

@NoiseFan NoiseFan merged commit 1772c68 into vitest-dev:dev Jun 5, 2026
5 checks passed
@NoiseFan NoiseFan deleted the feat/container branch June 5, 2026 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant