-
Notifications
You must be signed in to change notification settings - Fork 1.1k
docs(cn): translate src/content/glossary.md #782
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
Deploy preview for cn-webpack ready! Built with commit 9b31f96 |
src/content/glossary.md
Outdated
- __Chunk__: This webpack-specific term is used internally to manage the bundling process. Bundles are composed out of chunks, of which there are several types (e.g. entry and child). Typically, _chunks_ directly correspond with the output _bundles_ however, there are some configurations that don't yield a one-to-one relationship. | ||
- [__Code Splitting__](/guides/code-splitting/): Refers to dividing your code into various bundles/chunks which you can then load on demand instead of loading a single bundle containing everything. | ||
- [__Configuration__](/concepts/configuration/): webpack configuration file is a plain old JavaScript file that exports an object. This object is then processed by webpack based upon its defined properties. | ||
- __Chunk__: 此 webpack 特定术语在内部用于管理捆绑过程。捆绑包由块组成,其中有几种类型(例如 entry 和 child )。通常,_块_ 直接与 _输出束_ 相对应,但是,有些配置不会产生一对一的关系。 |
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.
捆包包,输出束,都是bundle,请保持一致,并加个(bundle)在旁边做一下注释。
src/content/glossary.md
Outdated
|
||
|
||
## A | ||
|
||
- [__Asset__](/guides/asset-management/): This a general term for the images, fonts, media, and any other kind of files that are typically used in websites and other applications. These typically end up as individual files within the [output](/glossary/#o) but can also be inlined via things like the [style-loader](/loaders/style-loader) or [url-loader](/loaders/url-loader). | ||
- [__Asset__](/guides/asset-management/): 资源是对图像、字体、媒体和任何其他类型文件的统称,通常用于网站和其他应用程序中。这些文件通常在 [output](/glossary/#o) 中最终输出为单独的文件,但也可以通过诸如 [style-loader](/loaders/style-loader) 或 [url-loader](/loaders/url-loader) 之类的方法内联。 |
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.
markdown 里面都只占用了一行。中文比英文要少,这种情况我可以从中间断下来吗?还是翻译规则上说的用空行?这里我不太明白空行是什么意思?
src/content/glossary.md
Outdated
- [__Module__](/concepts/modules): Discrete chunks of functionality that provide a smaller surface area than a full program. Well-written modules provide solid abstractions and encapsulation boundaries which make up a coherent design and clear purpose. | ||
- [__Module Resolution__](/concepts/module-resolution/): A module can be required as a dependency from another module and a resolver is a library which helps in locating a module by its absolute path. Modules are searched for inside all directories specified in `resolve.modules`. | ||
- [__Manifest__](/concepts/manifest): The runtime will use it to resolve and load modules once they've been bundled and shipped to the browser. | ||
- [__Module__](/concepts/modules): 离散功能块相比于完整程序提供了更小的接触面。精心编写的模块提供了可靠的抽象和封装界限,使得应用程序中每个模块都具有条理清楚的设计和明确的目的。 |
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.
这里的意思是说,Module 是descrete chunks
src/content/glossary.md
Outdated
|
||
|
||
## P | ||
|
||
- [__Plugin__](/concepts/plugins): A JavaScript object that has an `apply` property. This `apply` property is called by the webpack compiler, giving access to the entire compilation lifecycle. These packages will typically extend compilation functionality in one way or another. | ||
- [__Plugin__](/concepts/plugins): webpack 插件是一个具有 `apply` 属性的 JavaScript 对象。 `apply` 属性会被 webpack compiler 调用,并且 compiler 对象可在整个编译生命周期访问。这些包通常会以某种方式扩展编译功能。 |
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.
是插件可访问生命周期,不是compiler
src/content/glossary.md
Outdated
|
||
|
||
## W | ||
|
||
- [__webpack__](/): A highly configurable [module](/concepts/modules) bundler for modern JavaScript applications. | ||
- [__webpack__](/): 一个用于现代 JavaScript 应用程序的高度可配置的 [module](/concepts/modules)捆绑包。 |
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.
捆绑包 -> 打包工具
src/content/glossary.md
Outdated
|
||
|
||
## V | ||
|
||
- [__Vendor Entry Point__](/concepts/entry-points/#separate-app-and-vendor-entries): Create dependency graphs starting at both `app.js` and `vendors.js`. These graphs are completely separate and independent of each other to allow leverage of `CommonsChunkPlugin` and extract any vendor references from your app bundle into your vendor bundle. Helps achieve a common pattern in webpack known as [long-term vendor-caching](/guides/caching/). | ||
- [__Vendor Entry Point__](/concepts/entry-points/#separate-app-and-vendor-entries): 从 `app.js` 和 `vendors.js` 开始创建依赖图。这些依赖图完全是分开且独立的,允许使用 `CommonsChunkPlugin`,并将应用程序包的任何供应商参考提取到你的供应商包中。有助于在 webpack 中实现一种称为 [长期供应商缓存](/guides/caching/) 的常见模式。 |
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.
供应商参考 -> 供应商(vendor)引用。
describe your changes...