Skip to content

Commit 64c6f69

Browse files
committed
docs(cn): resolve conflicts
1 parent 7c241ea commit 64c6f69

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+894
-799
lines changed

.vitepress/config.ts

+17-46
Original file line numberDiff line numberDiff line change
@@ -124,23 +124,13 @@ export default defineConfig({
124124
],
125125

126126
locales: {
127-
<<<<<<< HEAD
128127
root: { label: '简体中文' },
129-
en: { label: 'English', link: 'https://vitejs.dev' },
130-
ja: { label: '日本語', link: 'https://ja.vitejs.dev' },
131-
es: { label: 'Español', link: 'https://es.vitejs.dev' },
132-
pt: { label: 'Português', link: 'https://pt.vitejs.dev' },
133-
ko: { label: '한국어', link: 'https://ko.vitejs.dev' },
134-
de: { label: 'Deutsch', link: 'https://de.vitejs.dev' },
135-
=======
136-
root: { label: 'English' },
137-
zh: { label: '简体中文', link: 'https://cn.vite.dev' },
128+
en: { label: 'English', link: 'https://vite.dev' },
138129
ja: { label: '日本語', link: 'https://ja.vite.dev' },
139130
es: { label: 'Español', link: 'https://es.vite.dev' },
140131
pt: { label: 'Português', link: 'https://pt.vite.dev' },
141132
ko: { label: '한국어', link: 'https://ko.vite.dev' },
142133
de: { label: 'Deutsch', link: 'https://de.vite.dev' },
143-
>>>>>>> 0fd7d2e8b36cf55fe5385ff2f957b92e9d44054b
144134
},
145135

146136
themeConfig: {
@@ -218,12 +208,8 @@ export default defineConfig({
218208

219209
footer: {
220210
message: `Released under the MIT License. (${commitRef})`,
221-
<<<<<<< HEAD
222211
copyright:
223-
'本中文文档内容版权为 Vite 官方中文翻译团队所有,保留所有权利。'
224-
=======
225-
copyright: 'Copyright © 2019-present VoidZero Inc. & Vite Contributors',
226-
>>>>>>> 0fd7d2e8b36cf55fe5385ff2f957b92e9d44054b
212+
'Copyright © 2019-present VoidZero Inc. & Vite Contributors'
227213
},
228214

229215
nav: [
@@ -247,13 +233,8 @@ export default defineConfig({
247233
link: 'https://twitter.com/vite_js',
248234
},
249235
{
250-
<<<<<<< HEAD
251236
text: 'Discord 聊天室',
252-
link: 'https://chat.vitejs.dev'
253-
=======
254-
text: 'Discord Chat',
255237
link: 'https://chat.vite.dev',
256-
>>>>>>> 0fd7d2e8b36cf55fe5385ff2f957b92e9d44054b
257238
},
258239
{
259240
text: 'Awesome Vite',
@@ -284,15 +265,15 @@ export default defineConfig({
284265
items: [
285266
{
286267
text: 'Vite v4 文档(英文)',
287-
link: 'https://v4.vitejs.dev'
268+
link: 'https://v4.vite.dev'
288269
},
289270
{
290271
text: 'Vite v3 文档(英文)',
291-
link: 'https://v3.vitejs.dev'
272+
link: 'https://v3.vite.dev'
292273
},
293274
{
294275
text: 'Vite v2 文档(英文)',
295-
link: 'https://v2.vitejs.dev'
276+
link: 'https://v2.vite.dev'
296277
},
297278
]
298279
}
@@ -368,16 +349,11 @@ export default defineConfig({
368349
link: '/guide/philosophy',
369350
},
370351
{
371-
<<<<<<< HEAD
372-
text: '从 v4 迁移',
352+
text: '从 v5 迁移',
373353
link: '/guide/migration'
374-
=======
375-
text: 'Migration from v5',
376-
link: '/guide/migration',
377-
>>>>>>> 0fd7d2e8b36cf55fe5385ff2f957b92e9d44054b
378354
},
379355
{
380-
text: 'Breaking Changes',
356+
text: '破坏性变更',
381357
link: '/changes/',
382358
},
383359
],
@@ -398,13 +374,8 @@ export default defineConfig({
398374
link: '/guide/api-javascript',
399375
},
400376
{
401-
<<<<<<< HEAD
402-
text: 'Vite 运行时 API',
403-
link: '/guide/api-vite-runtime',
404-
=======
405-
text: 'Environment API',
377+
text: '环境 API',
406378
link: '/guide/api-environment',
407-
>>>>>>> 0fd7d2e8b36cf55fe5385ff2f957b92e9d44054b
408379
},
409380
{
410381
text: '配置参考',
@@ -454,40 +425,40 @@ export default defineConfig({
454425
],
455426
'/changes/': [
456427
{
457-
text: 'Breaking Changes',
428+
text: '破坏性变更',
458429
link: '/changes/',
459430
},
460431
{
461-
text: 'Current',
432+
text: '现在',
462433
items: [],
463434
},
464435
{
465-
text: 'Future',
436+
text: '未来',
466437
items: [
467438
{
468-
text: 'this.environment in Hooks',
439+
text: '钩子函数中的 this.environment',
469440
link: '/changes/this-environment-in-hooks',
470441
},
471442
{
472-
text: 'HMR hotUpdate Plugin Hook',
443+
text: 'HMR hotUpdate 插件钩子',
473444
link: '/changes/hotupdate-hook',
474445
},
475446
{
476-
text: 'Move to per-environment APIs',
447+
text: '迁移到按环境划分的 API',
477448
link: '/changes/per-environment-apis',
478449
},
479450
{
480-
text: 'SSR using ModuleRunner API',
451+
text: '使用 ModuleRunner API 进行服务端渲染',
481452
link: '/changes/ssr-using-modulerunner',
482453
},
483454
{
484-
text: 'Shared plugins during build',
455+
text: '构建过程中的共享插件',
485456
link: '/changes/shared-plugins-during-build',
486457
},
487458
],
488459
},
489460
{
490-
text: 'Past',
461+
text: '过去',
491462
items: [],
492463
},
493464
],

.vitepress/theme/components/landing/1. hero-section/HeroSection.vue

+2-3
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@ import HeroDiagram from './HeroDiagram.vue'
1515
<h1>The Build Tool<br />for the Web</h1>
1616
<!-- Tagline -->
1717
<h3>
18-
Vite is a blazing fast frontend build tool powering the next generation
19-
of web applications.
18+
Vite 是一个超快速的前端构建工具,推动着下一代网络应用的发展
2019
</h3>
2120

2221
<!-- CTA Buttons -->
2322
<div class="hero__actions">
24-
<a href="/guide/" class="btn btn--primary">Get started</a>
23+
<a href="/guide/" class="btn btn--primary">开始</a>
2524
<a
2625
href="https://github.com/vitejs/vite"
2726
target="_blank"

.vitepress/theme/components/landing/2. feature-section/FeatureCI.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -319,10 +319,10 @@ const { startAnimation, isCardActive } = useCardAnimation(
319319
</div>
320320
</div>
321321
<div class="feature__meta meta--center">
322-
<div class="meta__title">Continuous ecosystem integration</div>
322+
<div class="meta__title">持续的生态系统集成</div>
323323
<div class="meta__description">
324-
Our CI continuously tests Vite changes against downstream projects,
325-
allowing us to improve Vite with stability and confidence.
324+
我们的持续集成(CI)系统不断测试 Vite 对下游项目的更改,
325+
这使我们能够在确保稳定性的同时,自信地改进 Vite
326326
</div>
327327
</div>
328328
</div>

.vitepress/theme/components/landing/2. feature-section/FeatureFlexiblePlugins.vue

+2-3
Original file line numberDiff line numberDiff line change
@@ -349,10 +349,9 @@ const { isCardActive, startAnimation } = useCardAnimation(
349349
</div>
350350
</div>
351351
<div class="feature__meta">
352-
<div class="meta__title">Flexible plugin system</div>
352+
<div class="meta__title">灵活的插件系统</div>
353353
<div class="meta__description">
354-
Vite plugins extends Rollup's well-designed plugin interface with a few
355-
extra Vite-specific options.
354+
Vite 插件扩展了 Rollup 精妙的插件接口,并增加了一些 Vite 特有的选项配置
356355
</div>
357356
</div>
358357
</div>

.vitepress/theme/components/landing/2. feature-section/FeatureHMR.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,9 @@ const { startAnimation } = useCardAnimation(
247247
</div>
248248
</div>
249249
<div class="feature__meta meta--center">
250-
<div class="meta__title">Lightning fast HMR</div>
250+
<div class="meta__title">轻量快速的模块热替换</div>
251251
<div class="meta__description">
252-
Hot Module Replacement (HMR) that stays fast regardless of app size.
252+
无论应用程序大小如何,都始终以极快的速度进行模块热替换(HMR
253253
</div>
254254
</div>
255255
</div>

.vitepress/theme/components/landing/2. feature-section/FeatureInstantServerStart.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ onUnmounted(() => {
182182
<div class="connection-line" :class="{ active: commandTriggered }" />
183183
</div>
184184
<div class="feature__meta">
185-
<div class="meta__title">Instant server start</div>
185+
<div class="meta__title">极速的服务启动</div>
186186
<div class="meta__description">
187-
On demand file serving over native ESM, no bundling required!
187+
使用原生 ESM 文件,无需打包
188188
</div>
189189
</div>
190190
</div>

.vitepress/theme/components/landing/2. feature-section/FeatureOptimizedBuild.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -436,9 +436,9 @@ const { startAnimation } = useCardAnimation(
436436
</svg>
437437
</div>
438438
<div class="feature__meta meta--center">
439-
<div class="meta__title">Optimized build</div>
439+
<div class="meta__title">优化后的构建</div>
440440
<div class="meta__description">
441-
Pre-configured Rollup build with multi-page and library mode support.
441+
可选 “多页应用” 或 “库” 模式的预配置 Rollup 构建
442442
</div>
443443
</div>
444444
</div>

.vitepress/theme/components/landing/2. feature-section/FeatureRichFeatures.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ const { isCardActive, startAnimation } = useCardAnimation(
126126
<div class="center-glow" />
127127
</div>
128128
<div class="feature__meta meta--center">
129-
<div class="meta__title">Rich features</div>
129+
<div class="meta__title">丰富的功能</div>
130130
<div class="meta__description">
131-
Out-of-the-box support for TypeScript, JSX, CSS and more.
131+
TypeScriptJSXCSS 等支持开箱即用
132132
</div>
133133
</div>
134134
</div>

.vitepress/theme/components/landing/2. feature-section/FeatureSSRSupport.vue

+2-3
Original file line numberDiff line numberDiff line change
@@ -417,10 +417,9 @@ const { isCardActive, startAnimation } = useCardAnimation(
417417
</svg>
418418
</div>
419419
<div class="feature__meta">
420-
<div class="meta__title">First class SSR Support</div>
420+
<div class="meta__title">一流的 SSR 支持</div>
421421
<div class="meta__description">
422-
It's never been easier to setup custom SSR (Server-Side Rendering), or
423-
build your own SSR framework.
422+
设置自定义 SSR(服务端渲染)及构建自己的 SSR 框架从未如此简单
424423
</div>
425424
</div>
426425
</div>

.vitepress/theme/components/landing/2. feature-section/FeatureTypedAPI.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ const { isCardActive, startAnimation } = useCardAnimation(
6868
</div>
6969
</div>
7070
<div class="feature__meta meta--center">
71-
<div class="meta__title">Fully typed API</div>
72-
<div class="meta__description">Designed to be built on top of.</div>
71+
<div class="meta__title">完全类型化的 API</div>
72+
<div class="meta__description">专为在上层构建而设计</div>
7373
</div>
7474
</div>
7575
</template>

.vitepress/theme/components/landing/3. frameworks-section/FrameworksSection.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ const rowStyle: ComputedRef<{ transform: string }> = computed(() => {
276276

277277
<template>
278278
<section class="frameworks-section" id="frameworks-section">
279-
<h2>Powering your favorite frameworks and tools</h2>
279+
<h2>支持你喜爱的框架和工具</h2>
280280
<div class="frameworks-container">
281281
<!-- Top Row -->
282282
<div class="framework-row" :style="rowStyle">

.vitepress/theme/components/landing/4. community-section/CommunitySection.vue

+2-3
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,9 @@ SolidJS in mind, they should scale from our simplest template to opinionated sta
8686

8787
<template>
8888
<section class="community-section">
89-
<h2>Loved by the community</h2>
89+
<h2>深受社区喜爱</h2>
9090
<h3>
91-
Don't take our word for it - listen to what Vite community members have to
92-
say.
91+
不要只听我们说 —— 来听听 Vite 社区成员的声音
9392
</h3>
9493
<div class="community-grid-container">
9594
<div class="community-grid">

.vitepress/theme/components/landing/5. sponsor-section/SponsorSection.vue

+3-4
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,12 @@ const { data } = useSponsor()
4646
width="58"
4747
height="55"
4848
/>
49-
<h2>Free &amp; open source</h2>
49+
<h2>免费 &amp; 开源</h2>
5050
<h4>
51-
Vite is MIT Licensed and will always be free and open source. This is made
52-
possible by our contributors and these companies:
51+
Vite 采用 MIT 许可证,并将始终保持免费和开源。这一切都要感谢我们的贡献者和以下公司:
5352
</h4>
5453

55-
<h4>Brought to you by</h4>
54+
<h4>由以下团队呈现</h4>
5655
<div class="voidzero">
5756
<a href="https://voidzero.dev" target="_blank">
5857
<img src="./voidzero.svg" />

.vitepress/theme/components/landing/6. get-started-section/GetStartedSection.vue

+3-4
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,11 @@
109109
</svg>
110110
<img src="/logo.svg" alt="Vite Logo" class="vite-chip__logo" />
111111
</div>
112-
<h2>Start building with Vite</h2>
112+
<h2>使用 Vite 开始构建</h2>
113113
<h3>
114-
Prepare for a development environment that can finally keep pace with the
115-
speed of your mind.
114+
准备好迎接一个能跟上您思维速度的开发环境
116115
</h3>
117-
<a href="/guide/" class="btn btn--primary">Get started</a>
116+
<a href="/guide/" class="btn btn--primary">开始</a>
118117
<div class="glow glow--purple" />
119118
<div class="glow glow--blue" />
120119
</div>

.vitepress/theme/index.ts

-10
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,14 @@ import './styles/vars.css'
77
import './styles/landing.css'
88
import AsideSponsors from './components/AsideSponsors.vue'
99
import SvgImage from './components/SvgImage.vue'
10-
<<<<<<< HEAD
11-
import WwAds from './components/WwAds.vue'
1210
import './custom.css'
13-
=======
1411
import 'virtual:group-icons.css'
15-
>>>>>>> 0fd7d2e8b36cf55fe5385ff2f957b92e9d44054b
1612

1713
export default {
1814
extends: DefaultTheme,
1915
Layout() {
2016
return h(DefaultTheme.Layout, null, {
21-
<<<<<<< HEAD
22-
'home-features-after': () => h(HomeSponsors),
23-
'aside-outline-after': () => h(WwAds),
24-
'aside-bottom': () => h(AsideSponsors)
25-
=======
2617
'aside-ads-before': () => h(AsideSponsors),
27-
>>>>>>> 0fd7d2e8b36cf55fe5385ff2f957b92e9d44054b
2818
})
2919
},
3020
enhanceApp({ app }) {

.vscode/settings.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@
33
"editor.tabSize": 2,
44
"prettier.singleQuote": true,
55
"prettier.semi": false,
6-
"prettier.trailingComma": "none"
6+
"prettier.trailingComma": "none",
7+
"cSpell.words": [
8+
"Rollup",
9+
"Vite"
10+
]
711
}

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
> ### 敬请所有读者注意
22
>
33
> - 原则上这里只进行英文版对应的翻译工作,如果觉得原文有改进之处,或任何不仅针对中文版,而受益所有语言版本的想法,建议直接在英文版仓库讨论。
4-
> - **原则上这里不适合讨论 Vite 的使用问题**,建议相关问题在 Vite 的 [issues 区](https://github.com/vitejs/vite/issues)[Vite 官方讨论区](https://chat.vitejs.dev/) 或各大主流技术社区讨论,以便得到更多帮助和更充分的讨论。
4+
> - **原则上这里不适合讨论 Vite 的使用问题**,建议相关问题在 Vite 的 [issues 区](https://github.com/vitejs/vite/issues)[Vite 官方讨论区](https://chat.vite.dev/) 或各大主流技术社区讨论,以便得到更多帮助和更充分的讨论。
55
66
<p align="center">
7-
<a href="https://vitejs.dev" target="_blank" rel="noopener noreferrer">
8-
<img width="180" src="https://vitejs.dev/logo.svg" alt="Vite logo">
7+
<a href="https://vite.dev" target="_blank" rel="noopener noreferrer">
8+
<img width="180" src="https://vite.dev/logo.svg" alt="Vite logo">
99
</a>
1010
</p>
1111
<br/>
@@ -14,7 +14,7 @@
1414
<a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/vite.svg" alt="node compatility"></a>
1515
<a href="https://app.circleci.com/pipelines/github/vitejs/vite?branch=main"><img src="https://circleci.com/gh/vitejs/vite/tree/main.svg?style=shield" alt="unix build status"></a>
1616
<a href="https://ci.appveyor.com/project/yyx990803/vite/branch/main"><img src="https://ci.appveyor.com/api/projects/status/0q4j8062olbcs71l/branch/main?svg=true" alt="windows build status"></a>
17-
<a href="https://chat.vitejs.dev"><img src="https://img.shields.io/badge/chat-discord-blue?style=flat&logo=discord" alt="discord chat"></a>
17+
<a href="https://chat.vite.dev"><img src="https://img.shields.io/badge/chat-discord-blue?style=flat&logo=discord" alt="discord chat"></a>
1818
</p>
1919
<br/>
2020

@@ -23,7 +23,7 @@
2323
> Vite:下一代前端开发与构建工具
2424
2525
- 💡 极速的开发服务器启动
26-
- ⚡️ 轻量快速的热模块重载(HMR)
26+
- ⚡️ 轻量快速的模块热替换(HMR)
2727
- 🛠️ 丰富的功能
2828
- 📦 自带优化的构建
2929
- 🔩 通用的插件接口

0 commit comments

Comments
 (0)