Skip to content

docs: add zh docs for vuex 4.0 #1965

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 32 commits into from
May 10, 2021
Merged

docs: add zh docs for vuex 4.0 #1965

merged 32 commits into from
May 10, 2021

Conversation

Alanscut
Copy link
Contributor

add zh docs for Vuex 4.0, most parts are based on docs of 3.0

@kiaking kiaking added documentation Improvements or additions to documentation 4.x labels Apr 15, 2021
text: '核心概念',
children: [
{ text: 'State', link: '/zh/guide/state' },
{ text: 'Getters', link: '/zh/guide/getters' },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

翻译后不需要保留复数,下同

Copy link
Contributor Author

@Alanscut Alanscut May 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里的复数指的是 getters 吗?这里是参考的vuex 3.x版本的文档,并且在英文文档中,getters, mutations 等都是复数形式,这些专有名词,翻译后是否保留英文原始形式更合适呢?如果您觉着需要改的话,我稍后修改

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

谢谢指点!我马上改正

docs/zh/index.md Outdated
count: 0
}
},
// view
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// view
// 视图

docs/zh/index.md Outdated
template: `
<div>{{ count }}</div>
`,
// actions
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// actions
// 操作

docs/zh/index.md Outdated

- **state**,驱动应用的数据源;
- **view**,以声明方式将 **state** 映射到视图;
- **actions**,响应在 **view** 上的用户输入导致的状态变化。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同上

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

state, view, actions 在这里是否保留为英文更容易让用户理解呢?尤其是stateactions, 在vuex中更像是专有名词

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我理解这个和专有概念并不一一对应,这里只是一个宽泛概念的描述,后面会有对专有概念详细进行介绍的。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的,谢谢!

Alan Wang and others added 24 commits May 10, 2021 10:01
@Justineo
Copy link
Member

@Alanscut Thank you very much for your hard work! I think this PR is ready to merge 👍

/cc @kiaking

@Alanscut
Copy link
Contributor Author

@Justineo Thank you for your patience and guidance, which makes the document more standardized and smooth!

Copy link
Member

@kiaking kiaking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for the amazing work 🎉 🎉 🎉

I've adjusted the lang list order just to match the Vuex 3 docs, and fixed link to api doc on Nav bar.

@kiaking kiaking merged commit db8c476 into vuejs:4.0 May 10, 2021
@Alanscut Alanscut deleted the zh-4.0 branch October 18, 2021 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants