-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Conversation
docs/.vitepress/config.js
Outdated
text: '核心概念', | ||
children: [ | ||
{ text: 'State', link: '/zh/guide/state' }, | ||
{ text: 'Getters', link: '/zh/guide/getters' }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
翻译后不需要保留复数,下同
There was a problem hiding this comment.
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
等都是复数形式,这些专有名词,翻译后是否保留英文原始形式更合适呢?如果您觉着需要改的话,我稍后修改
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
参见:术语翻译约定
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// view | |
// 视图 |
docs/zh/index.md
Outdated
template: ` | ||
<div>{{ count }}</div> | ||
`, | ||
// actions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// actions | |
// 操作 |
docs/zh/index.md
Outdated
|
||
- **state**,驱动应用的数据源; | ||
- **view**,以声明方式将 **state** 映射到视图; | ||
- **actions**,响应在 **view** 上的用户输入导致的状态变化。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同上
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
state
, view
, actions
在这里是否保留为英文更容易让用户理解呢?尤其是state
,actions
, 在vuex中更像是专有名词
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我理解这个和专有概念并不一一对应,这里只是一个宽泛概念的描述,后面会有对专有概念详细进行介绍的。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的,谢谢!
Co-authored-by: GU Yiling <[email protected]>
Co-authored-by: GU Yiling <[email protected]>
Co-authored-by: GU Yiling <[email protected]>
Co-authored-by: GU Yiling <[email protected]>
Co-authored-by: GU Yiling <[email protected]>
Co-authored-by: GU Yiling <[email protected]>
Co-authored-by: GU Yiling <[email protected]>
Co-authored-by: GU Yiling <[email protected]>
Co-authored-by: GU Yiling <[email protected]>
Co-authored-by: GU Yiling <[email protected]>
Co-authored-by: GU Yiling <[email protected]>
Co-authored-by: GU Yiling <[email protected]>
Co-authored-by: GU Yiling <[email protected]>
Co-authored-by: GU Yiling <[email protected]>
Co-authored-by: GU Yiling <[email protected]>
Co-authored-by: GU Yiling <[email protected]>
Co-authored-by: GU Yiling <[email protected]>
Co-authored-by: GU Yiling <[email protected]>
Co-authored-by: GU Yiling <[email protected]>
Co-authored-by: GU Yiling <[email protected]>
Co-authored-by: GU Yiling <[email protected]>
Co-authored-by: GU Yiling <[email protected]>
Co-authored-by: GU Yiling <[email protected]>
Co-authored-by: GU Yiling <[email protected]>
Co-authored-by: GU Yiling <[email protected]>
@Justineo Thank you for your patience and guidance, which makes the document more standardized and smooth! |
There was a problem hiding this 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.
add zh docs for Vuex 4.0, most parts are based on docs of 3.0