-
Notifications
You must be signed in to change notification settings - Fork 272
feat: add Chinese docs translation #2552
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 6 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
6d84190
feat: add zh config
DDDDD12138 fa42b2e
feat: add zh template (copied from English)
DDDDD12138 3f3f8b7
feat: complete all Chinese translations
DDDDD12138 df10622
feat: add zh i18nLabels
DDDDD12138 6e1a603
Merge branch 'main' into feat-zh-locale
Jinjiang 850e612
chore(docs): upgrade translation helper
Jinjiang 757d87c
feat: Use zhlint to lint markdown files
DDDDD12138 565d4ac
chore: remove zh README.md file
DDDDD12138 ef68a94
feat: correct pronoun usage
DDDDD12138 e8c26d5
feat: update translation status
DDDDD12138 343b0f4
feat: remove spaces around dashes
DDDDD12138 3a621b0
feat: update zh i18nLabel
DDDDD12138 ee3dc55
feat: remove spaces around full-width symbol links
DDDDD12138 25bdbe6
feat: format Markdown italic syntax
DDDDD12138 638839b
feat: update zh description
DDDDD12138 e6c7f41
feat: update
DDDDD12138 0568d3b
docs(zh-cn): add in-review label and call for participation
Jinjiang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
import type { DefaultTheme, LocaleSpecificConfig } from 'vitepress' | ||
|
||
export const META_URL = '' | ||
export const META_TITLE = 'Vue Test Utils' | ||
export const META_DESCRIPTION = 'Vue.js 3 官方测试工具集' | ||
|
||
export const zhConfig: LocaleSpecificConfig<DefaultTheme.Config> = { | ||
description: META_DESCRIPTION, | ||
head: [ | ||
['meta', { property: 'og:url', content: META_URL }], | ||
['meta', { property: 'og:title', content: META_TITLE }], | ||
['meta', { property: 'og:description', content: META_DESCRIPTION }], | ||
['meta', { property: 'twitter:url', content: META_URL }], | ||
['meta', { property: 'twitter:title', content: META_TITLE }], | ||
['meta', { property: 'twitter:description', content: META_DESCRIPTION }] | ||
], | ||
|
||
themeConfig: { | ||
editLink: { | ||
pattern: 'https://github.com/vuejs/test-utils/edit/main/docs/:path', | ||
text: '改进此页面的内容' | ||
}, | ||
|
||
nav: [ | ||
{ text: '指南', link: '/zh/guide/' }, | ||
{ text: 'API 参考', link: '/zh/api/' }, | ||
{ text: '从 Vue 2 迁移', link: '/zh/migration/' }, | ||
{ | ||
text: '更新日志', | ||
link: 'https://github.com/vuejs/test-utils/releases' | ||
} | ||
], | ||
|
||
sidebar: { | ||
'/zh': [ | ||
{ | ||
text: '安装', | ||
link: '/zh/installation/' | ||
}, | ||
{ | ||
text: '基础知识', | ||
items: [ | ||
{ | ||
text: '开始', | ||
link: '/zh/guide/' | ||
}, | ||
{ | ||
text: '快速上手', | ||
link: '/zh/guide/essentials/a-crash-course' | ||
}, | ||
{ | ||
text: '条件渲染', | ||
link: '/zh/guide/essentials/conditional-rendering' | ||
}, | ||
{ | ||
text: '测试事件触发', | ||
link: '/zh/guide/essentials/event-handling' | ||
}, | ||
{ | ||
text: '测试表单', | ||
link: '/zh/guide/essentials/forms' | ||
}, | ||
{ | ||
text: '传递数据到组件', | ||
link: '/zh/guide/essentials/passing-data' | ||
}, | ||
{ | ||
text: '编写易于测试的组件', | ||
link: '/zh/guide/essentials/easy-to-test' | ||
} | ||
] | ||
}, | ||
{ | ||
text: '深入学习 Vue Test Utils', | ||
items: [ | ||
{ | ||
text: '插槽', | ||
link: '/zh/guide/advanced/slots' | ||
}, | ||
{ | ||
text: '异步行为', | ||
link: '/zh/guide/advanced/async-suspense' | ||
}, | ||
{ | ||
text: '发起 HTTP 请求', | ||
link: '/zh/guide/advanced/http-requests' | ||
}, | ||
{ | ||
text: '过渡效果', | ||
link: '/zh/guide/advanced/transitions' | ||
}, | ||
{ | ||
text: '组件实例', | ||
link: '/zh/guide/advanced/component-instance' | ||
}, | ||
{ | ||
text: '复用与组合', | ||
link: '/zh/guide/advanced/reusability-composition' | ||
}, | ||
{ | ||
text: '测试 v-model', | ||
link: '/zh/guide/advanced/v-model' | ||
}, | ||
{ | ||
text: '测试 Vuex', | ||
link: '/zh/guide/advanced/vuex' | ||
}, | ||
{ | ||
text: '测试 Vue Router', | ||
link: '/zh/guide/advanced/vue-router' | ||
}, | ||
{ | ||
text: '测试 Teleport', | ||
link: '/zh/guide/advanced/teleport' | ||
}, | ||
{ | ||
text: 'Stubs 和浅挂载', | ||
link: '/zh/guide/advanced/stubs-shallow-mount' | ||
}, | ||
{ | ||
text: '测试服务端渲染', | ||
link: '/zh/guide/advanced/ssr' | ||
} | ||
] | ||
}, | ||
{ | ||
text: '扩展 Vue Test Utils', | ||
items: [ | ||
{ | ||
text: '插件', | ||
link: '/zh/guide/extending-vtu/plugins' | ||
}, | ||
{ | ||
text: '社区与学习资源', | ||
link: '/zh/guide/extending-vtu/community-learning' | ||
} | ||
] | ||
}, | ||
{ | ||
text: '常见问题', | ||
link: '/zh/guide/faq/' | ||
}, | ||
{ | ||
text: '从 Vue 2 迁移', | ||
link: '/zh/migration/' | ||
}, | ||
{ | ||
text: 'API 参考', | ||
link: '/zh/api/' | ||
} | ||
] | ||
} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Vue Test Utils | ||
DDDDD12138 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
||
Component testing utils for Vue 3. | ||
|
||
## Languages | ||
|
||
[🇫🇷 French version of this README.md](https://github.com/vuejs/test-utils/tree/main/docs/fr/README.md) | ||
|
||
## Installation and Usage | ||
|
||
- yarn: `yarn add @vue/test-utils --dev` | ||
- npm: `npm install @vue/test-utils --save-dev` | ||
|
||
Get started with the [documentation](https://test-utils.vuejs.org/). | ||
|
||
## Coming from Vue 2 + Test Utils v1? | ||
|
||
[Check the migration guide](https://test-utils.vuejs.org/migration/). It's still a work in progress. If you find a problem or something that doesn't work that previously did in Vue Test Utils v1, please open an issue. | ||
|
||
## Documentation | ||
|
||
See the [docs](https://test-utils.vuejs.org/). | ||
|
||
## Development | ||
|
||
Get started by running `pnpm install`. You can run the tests with `pnpm test`. That's it! | ||
|
||
## Contributing Docs | ||
|
||
All the documentation files can be found in `packages/docs`. It contains the English markdown files while translation(s) are stored in their corresponding `<lang>` sub-folder(s): | ||
|
||
- [`fr`](https://github.com/vuejs/test-utils/tree/main/packages/docs/fr): French translation. | ||
|
||
Besides that, the `.vitepress` sub-folder contains the config and theme, including the i18n information. | ||
|
||
- `pnpm docs:dev`: Start the docs dev server. | ||
- `pnpm docs:build`: Build the docs. | ||
|
||
To add or maintain the translations, we follow the [Vue Ecosystem Translation Guidelines](https://github.com/vuejs-translations/guidelines/blob/main/README_ECOSYSTEM.md). | ||
|
||
- `pnpm docs:translation:status [<lang>]`: Show the translation status for your language. If you don't specify a language, it will show the status for all languages. | ||
- `pnpm docs:translation:compare <lang>`: Compare the docs with the latest checkpoint for your language. | ||
- `pnpm docs:translation:update <lang> [<commit>]`: Update the checkpoint for your language. The checkpoint will be set by the latest commit hash. However, you can also specify a commit hash manually. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.