-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chapter: internationalization add zh_CN (#34)
* doc: add zh * chore: lint
- Loading branch information
Showing
6 changed files
with
73 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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 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,14 @@ | ||
import type { i18nTheme } from '.' | ||
|
||
const nav: i18nTheme['nav'] = [ | ||
{ text: '首页', link: '/zh/' }, | ||
{ text: '指南', link: '/zh/guide/' }, | ||
] | ||
|
||
const sidebar: i18nTheme['sidebar'] = [ | ||
{ text: '快速开始', link: '/zh/guide/' }, | ||
{ text: 'VueUse 是什么?', link: '/zh/guide/what-is-vueuse' }, | ||
{ text: '初始化', link: '/zh/guide/setup' }, | ||
] | ||
|
||
export const zh: i18nTheme = { nav, sidebar } |
This file contains 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,22 @@ | ||
## 本书的目的 | ||
|
||
本书的主要目的如下: | ||
|
||
- 学会创建像 VueUse 一样注重"可重用性"、"可维护性"和"可扩展性"的可组合组件 | ||
- 通过实际创建各种功能的可组合组件,深入理解 Vue.js 和 TypeScript | ||
- 阅读开源代码,学习实用的编码技术和最佳实践 | ||
|
||
## 本书的方针 | ||
|
||
- **最小化复现**: 不会完全复现 VueUse 的可组合组件,而是只实现必要的最小功能,以保持代码的可读性。 | ||
- **易于理解**: 即使是复杂的概念,也会以易于理解的方式进行解释,让读者能够顺利学习。使用清晰的解释和具体的例子,帮助读者顺利理解。 | ||
- **实用性**: 注重所学知识在实际开发中的应用价值。不仅关注理论知识,还会重点介绍实践问题解决方法和最佳实践。 | ||
|
||
## 目标读者 | ||
|
||
- 有 Vue.js 使用经验 | ||
- 有 TypeScript 使用经验 | ||
|
||
## 本书的结构 | ||
|
||
<!-- TODO: write about book structure --> |
This file contains 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,3 @@ | ||
# 环境搭建 | ||
|
||
<!-- TODO: write how to setup --> |
This file contains 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,3 @@ | ||
# 什么是 VueUse? | ||
|
||
<!-- TODO: write what is vueuse --> |
This file contains 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,26 @@ | ||
--- | ||
# https://vitepress.dev/reference/default-theme-home-page | ||
layout: home | ||
|
||
hero: | ||
name: "VueYous" | ||
text: "从头开始打造自己的 VueUse" | ||
tagline: 由 VitePress 驱动 | ||
image: /logo.png | ||
actions: | ||
- theme: brand | ||
text: 快速上手 | ||
link: /zh/guide/ | ||
- theme: alt | ||
text: VueUse 官方 | ||
link: https://vueuse.org/ | ||
|
||
# TODO: Write features | ||
features: | ||
- title: Feature A | ||
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit | ||
- title: Feature B | ||
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit | ||
- title: Feature C | ||
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit | ||
--- |