-
Notifications
You must be signed in to change notification settings - Fork 236
cn #2
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
cn #2
Conversation
en/SUMMARY.md
Outdated
- [基本用法](basic.md) | ||
- [编写通用代码](universal.md) | ||
- [源码结构](structure.md) | ||
- [路由和代码分离](routing.md) |
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.
分离 -> 分割
en/SUMMARY.md
Outdated
- [CSS 管理](css.md) | ||
- [Head 管理](head.md) | ||
- [缓存](caching.md) | ||
- [数据流](streaming.md) |
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.
数据流 -> 流式渲染
已修改 |
Fix typo in `webpack-node-externals`
The component in `Rendering a Vue Instance` renders to a `div` tag, not a `p` tag.
Fix typo in example
/en/universal.md 翻译 |
@dear-lizhihua hey 我也完成了一部分翻译,你看要不要用gitlocalize一起合作,这样不需要发多个pr,你可以查看另外一个issue |
@shadeofgod 可以加我进去尝试一下,如果不太方便,就还是按照现在的方式提交吧。 |
|
||
``` bash | ||
npm install vue vue-server-renderer --save | ||
``` | ||
|
||
We will be using NPM throughout the guide, but feel free to use [Yarn](https://yarnpkg.com/en/) instead. | ||
我们将在整个指南中使用 NPM,但是还可以随意使用 [Yarn](https://yarnpkg.com/en/)。 |
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.
翻译为:
我们将在整个指南中使用 NPM,但是使用 yarn 也是完全可行的。
另外 NPM 其实应该是小写……
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.
@riophae 感谢,我最近抽时间先都翻译出来,再校对细节。
在翻译过程中,最好还是不对文档中的字词直接做改动,因为上游没改,翻译分支改了,其他的翻译分支就没有收集到这些改动。
即使有错误,最好是提 pr 通知上游修复,我们翻译分支合并。
en/basic.md
Outdated
|
||
It is pretty straightforward when used inside a Node.js server, for example [Express](https://expressjs.com/): | ||
在 Node.js 服务器中使用时相当简单直接,举例如 [Express](https://expressjs.com/): |
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.
举例如
改为 比如
|
||
We can then read and pass the file to the Vue renderer: | ||
然后,我们可以读取和传输文件到 Vue renderer 中: |
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.
然后我们就可以读取该文件内容并传给 Vue renderer:
app.$mount('#app') | ||
``` | ||
|
||
### `entry-server.js`: | ||
|
||
The server entry uses a default export which is a function that can be called repeatedly for each render. At this moment, it doesn't do much other than creating and returning the app instance - but later when we will perform server-side route matching and data pre-fetching logic here. | ||
服务器 entry 使用 default export 导出函数,并在每次渲染中重复调用此函数。此时,除了创建和返回应用程序实例之外,它不会做太多事情 - 但是稍后我们将在此执行服务器端路由匹配(server-side route matching)和数据预取逻辑(data pre-fetching logic)。 |
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.
服务器端入口文件导出一个默认函数,它会在每次渲染时被调用。在这一节,这个函数里只会创建并返回一个 app 实例,后面的章节里我们将会处理服务器端路由匹配和数据预取逻辑。
en/basic.md
Outdated
- `vue-server-renderer` relies on some Node.js native modules and therefore can only be used in Node.js. We may provide a simpler build that can be run in other JavaScript runtimes in the future. | ||
- 推荐使用 Node.js 版本 6+. | ||
- `vue-server-renderer` 和 `vue` 必须匹配版本。 | ||
- `vue-server-renderer` 依赖一些 Node.js 原生模块,因此只能在 Node.js 中使用。我们可能会提供一个更简单的构建,可以在将来在其他「JavaScript 运行时(runtimes)」运行。 |
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.
汉字和 () 中间加一个空格
* [RU] init commit * langs.md add russian * basic.md переведён * basic.md тире и переведены примеры * universal.md переведён * structure.md переведён * routing.md переведён * data.md переведён * hydration.md переведён * bundle-renderer.md переведён * build-config.md в процессе * bundle-renderer.md исправлена ссылка * build-config.md переведён * css.md переведён * head.md переведён * cache.md переведён * streaming.md переведён * SUMMARY.md допереведён * api.md начат перевод * build-config.md доработки * bundle-rendered.md доработки * api.md допереведён * api.md исправлены опечатки * basic.md исправлены опечатки * build-config.md исправлены опечатки * bundle-renderer.md исправлены опечатки * caching.md исправлены опечатки * css.md исправлены опечатки * data.md исправлены опечатки * head.md исправлены опечатки * hydration.md исправлены опечатки * routing.md исправлены опечатки * streaming.md исправлены опечатки * structure.md исправлены опечатки * universal.md исправлены опечатки * api.md доработки к 2.3.1 * build-config.md доработки к 2.3.1 * bundle-renderer.md доработки к 2.3.1 * head.md доработки * routing.md исправлен пример * README.md переведён * Исправления очепяток * Стилистические исправления
@defcc 好的,谢谢校对,我稍后看下。 |
* data.md Исправлен пример * universal.md добавлен абзац * data.md разделение кода хранилища
这个PR还在继续跟进吗 |
@ZhangBohan 一直在翻译,本月有点忙,没顾上推进,如果你想参与,可以fork我的仓库给我提pr。 |
Signed-off-by: Bruno Lesieur <[email protected]>
# Conflicts: # en/data.md
Signed-off-by: Bruno Lesieur <[email protected]>
Signed-off-by: Bruno Lesieur <[email protected]>
# Conflicts: # en/README.md # en/SUMMARY.md # en/api.md # en/basic.md # en/hydration.md # en/structure.md
Is this PR outdated? Can I close it in favor of GitLocalize? |
ok |
/en/basic.md 翻译
/en/SUMMARY.md 翻译