diff --git a/aio/tools/translator/dict-latest.json b/aio/tools/translator/dict-latest.json index d1f4635215..3f506df9bb 100644 --- a/aio/tools/translator/dict-latest.json +++ b/aio/tools/translator/dict-latest.json @@ -3260,7 +3260,7 @@ { "key": "TOSPECIFYAVALUETRANSFORMATIONINANHTMLTEMPLATEUSETHEPIPEOPERATORHTTPS:ANGULARIOGUIDETEMPLATESYNTAX#PIPE:", "original": "To specify a value transformation in an HTML template, use the [pipe operator (|)](https://angular.io/guide/template-syntax#pipe):", - "translation": "要在 HTML 模板中指定值的转换方式,请使用 [管道操作符 (|)](https://angular.io/guide/template-syntax#pipe)。", + "translation": "要在 HTML 模板中指定值的转换方式,请使用 [管道操作符 (|)](https://angular.cn/guide/template-syntax#pipe)。", "sourceFile": "/Users/twer/private/GDE/angular-cn/aio/content/guide/architecture-components.md" }, { @@ -5402,7 +5402,7 @@ { "key": "##UPDATEDTOANGULAR40DOCUMENTATIONFORANGULAR2XCANBEFOUNDATV2ANGULARIOHTTPS:V2ANGULARIO", "original": "## Updated to Angular 4.0. Documentation for Angular 2.x can be found at [v2.angular.io](https://v2.angular.io).", - "translation": "## 更新到 Angular 4.0 。Angular 2.x 的文档在 [v2.angular.io](https://v2.angular.io) 。", + "translation": "## 更新到 Angular 4.0 。Angular 2.x 的文档在 [v2.angular.cn](https://v2.angular.io) 。", "sourceFile": "/Users/twer/private/GDE/angular-cn/aio/content/guide/change-log.md" }, { @@ -5684,7 +5684,7 @@ { "key": "THISWASREMOVEDINAUGUST2017HTTPS:GITHUBCOMANGULARANGULARPULL18694BUTCANSTILLBEVIEWEDINTHEV2DOCUMENTATIONHTTPS:V2ANGULARIODOCSTSLATESTCOOKBOOKTSTOJSHTML", "original": "This was [removed in August 2017](https://github.com/angular/angular/pull/18694) but can still be\nviewed in the [v2 documentation](https://v2.angular.io/docs/ts/latest/cookbook/ts-to-js.html).", - "translation": "本章已经 [于 2017 年 8 月移除](https://github.com/angular/angular/pull/18694),\n不过仍然可以在[第二版的文档中](https://v2.angular.io/docs/ts/latest/cookbook/ts-to-js.html)看到。", + "translation": "本章已经 [于 2017 年 8 月移除](https://github.com/angular/angular/pull/18694),\n不过仍然可以在[第二版的文档中](https://v2.angular.cn/docs/ts/latest/cookbook/ts-to-js.html)看到。", "sourceFile": "/Users/twer/private/GDE/angular-cn/aio/content/guide/change-log.md" }, { @@ -10520,7 +10520,7 @@ { "key": "THEHTMLLTBASEHREFGTGUIDEROUTERSPECIFIESABASEPATHFORRESOLVINGRELATIVEURLSTOASSETSSUCHASIMAGESSCRIPTSANDSTYLESHEETSFOREXAMPLEGIVENTHEBASEHREFMYAPPTHEBROWSERRESOLVESAURLSUCHASSOMEPLACEFOOJPGINTOASERVERREQUESTFORMYAPPSOMEPLACEFOOJPGDURINGNAVIGATIONTHEANGULARROUTERUSESTHEBASEHREFASTHEBASEPATHTOCOMPONENTTEMPLATEANDMODULEFILES", "original": "The HTML [_<base href=\"...\"/>_](/guide/router)\nspecifies a base path for resolving relative URLs to assets such as images, scripts, and style sheets.\nFor example, given the ``, the browser resolves a URL such as `some/place/foo.jpg`\ninto a server request for `my/app/some/place/foo.jpg`.\nDuring navigation, the Angular router uses the _base href_ as the base path to component, template, and module files.", - "translation": "HTML 中的[_<base href=\"...\"/>_](https://angular.io/docs/ts/latest/guide/router.html#!)用于指定一个解析相对路径的基地址,如图片、脚本和样式表。\n比如,指定 `` 时,浏览器就会把 `some/place/foo.jpg` 这样的 URL 解析成到 `my/app/some/place/foo.jpg` 的服务端请求。\n在浏览期间,Angular 路由器会使用*base href*作为组件、模板和模块文件的基地址。", + "translation": "HTML 中的[_<base href=\"...\"/>_](/guide/router)用于指定一个解析相对路径的基地址,如图片、脚本和样式表。\n比如,指定 `` 时,浏览器就会把 `some/place/foo.jpg` 这样的 URL 解析成到 `my/app/some/place/foo.jpg` 的服务端请求。\n在浏览期间,Angular 路由器会使用*base href*作为组件、模板和模块文件的基地址。", "sourceFile": "/Users/twer/private/GDE/angular-cn/aio/content/guide/deployment.md" }, { @@ -19988,7 +19988,7 @@ { "key": "THATLEAVESONLYCOMPONENTSBOOTSTRAPPEDUSINGONEOFTHEIMPERATIVETECHNIQUESSUCHASVIEWCOMPONENTREFCREATECOMPONENTHTTPS:ANGULARIOAPICOREVIEWCONTAINERREF#CREATECOMPONENTASUNDISCOVERABLE", "original": "That leaves only components bootstrapped using one of the imperative techniques, such as [`ViewComponentRef.createComponent()`](https://angular.io/api/core/ViewContainerRef#createComponent) as undiscoverable.", - "translation": "而那些使用不易察觉的[`ViewComponentRef.createComponent()`](https://angular.io/api/core/ViewContainerRef#createComponent)的方式进行命令式引导的组件仍然需要添加。", + "translation": "而那些使用不易察觉的[`ViewComponentRef.createComponent()`](https://angular.cn/api/core/ViewContainerRef#createComponent)的方式进行命令式引导的组件仍然需要添加。", "sourceFile": "/Users/twer/private/GDE/angular-cn/aio/content/guide/ngmodule-api.md" }, { @@ -21902,7 +21902,7 @@ { "key": "THEASYNCPIPEHTTPS:ANGULARIOAPICOMMONASYNCPIPESUBSCRIBESTOANOBSERVABLEORPROMISEANDRETURNSTHELATESTVALUEITHASEMITTEDWHENANEWVALUEISEMITTEDTHEPIPEMARKSTHECOMPONENTTOBECHECKEDFORCHANGES", "original": "The [AsyncPipe](https://angular.io/api/common/AsyncPipe) subscribes to an observable or promise and returns the latest value it has emitted. When a new value is emitted, the pipe marks the component to be checked for changes.", - "translation": "[AsyncPipe](https://angular.io/api/common/AsyncPipe) 会订阅一个可观察对象或承诺,并返回其发出的最后一个值。当发出新值时,该管道就会把这个组件标记为需要进行变更检查的(译注:因此可能导致刷新界面)。", + "translation": "[AsyncPipe](https://angular.cn/api/common/AsyncPipe) 会订阅一个可观察对象或承诺,并返回其发出的最后一个值。当发出新值时,该管道就会把这个组件标记为需要进行变更检查的(译注:因此可能导致刷新界面)。", "sourceFile": "/Users/twer/private/GDE/angular-cn/aio/content/guide/observables-in-angular.md" }, { @@ -21920,13 +21920,13 @@ { "key": "ROUTEREVENTSHTTPS:ANGULARIOAPIROUTERROUTER#EVENTSPROVIDESEVENTSASOBSERVABLESYOUCANUSETHEFILTEROPERATORFROMRXJSTOLOOKFOREVENTSOFINTERESTANDSUBSCRIBETOTHEMINORDERTOMAKEDECISIONSBASEDONTHESEQUENCEOFEVENTSINTHENAVIGATIONPROCESSHERESANEXAMPLE:", "original": "[`Router.events`](https://angular.io/api/router/Router#events) provides events as observables. You can use the `filter()` operator from RxJS to look for events of interest, and subscribe to them in order to make decisions based on the sequence of events in the navigation process. Here's an example:", - "translation": "[`Router.events`](https://angular.io/api/router/Router#events) 以可观察对象的形式提供了其事件。\n你可以使用 RxJS 中的 `filter()` 操作符来找到感兴趣的事件,并且订阅它们,以便根据浏览过程中产生的事件序列作出决定。\n例子如下:", + "translation": "[`Router.events`](https://angular.cn/api/router/Router#events) 以可观察对象的形式提供了其事件。\n你可以使用 RxJS 中的 `filter()` 操作符来找到感兴趣的事件,并且订阅它们,以便根据浏览过程中产生的事件序列作出决定。\n例子如下:", "sourceFile": "/Users/twer/private/GDE/angular-cn/aio/content/guide/observables-in-angular.md" }, { "key": "THEACTIVATEDROUTEHTTPS:ANGULARIOAPIROUTERACTIVATEDROUTEISANINJECTEDROUTERSERVICETHATMAKESUSEOFOBSERVABLESTOGETINFORMATIONABOUTAROUTEPATHANDPARAMETERSFOREXAMPLEACTIVATEROUTEURLCONTAINSANOBSERVABLETHATREPORTSTHEROUTEPATHORPATHSHERESANEXAMPLE:", "original": "The [ActivatedRoute](https://angular.io/api/router/ActivatedRoute) is an injected router service that makes use of observables to get information about a route path and parameters. For example, `ActivateRoute.url` contains an observable that reports the route path or paths. Here's an example:", - "translation": "[ActivatedRoute](https://angular.io/api/router/ActivatedRoute) 是一个可注入的路由器服务,它使用可观察对象来获取关于路由路径和路由参数的信息。比如,`ActivateRoute.url` 包含一个用于汇报路由路径的可观察对象。例子如下:", + "translation": "[ActivatedRoute](https://angular.cn/api/router/ActivatedRoute) 是一个可注入的路由器服务,它使用可观察对象来获取关于路由路径和路由参数的信息。比如,`ActivateRoute.url` 包含一个用于汇报路由路径的可观察对象。例子如下:", "sourceFile": "/Users/twer/private/GDE/angular-cn/aio/content/guide/observables-in-angular.md" }, { @@ -21938,7 +21938,7 @@ { "key": "REACTIVEFORMSHAVEPROPERTIESTHATUSEOBSERVABLESTOMONITORFORMCONTROLVALUESTHEFORMCONTROLHTTPS:ANGULARIOAPIFORMSFORMCONTROLPROPERTIESVALUECHANGESANDSTATUSCHANGESCONTAINOBSERVABLESTHATRAISECHANGEEVENTSSUBSCRIBINGTOANOBSERVABLEFORMCONTROLPROPERTYISAWAYOFTRIGGERINGAPPLICATIONLOGICWITHINTHECOMPONENTCLASSFOREXAMPLE:", "original": "Reactive forms have properties that use observables to monitor form control values. The [`FormControl`](https://angular.io/api/forms/FormControl) properties `valueChanges` and `statusChanges` contain observables that raise change events. Subscribing to an observable form-control property is a way of triggering application logic within the component class. For example:", - "translation": "响应式表单具有一些属性,它们使用可观察对象来监听表单控件的值。\n[`FormControl`](https://angular.io/api/forms/FormControl) 的 `valueChanges` 属性和 `statusChanges` 属性包含了会发出变更事件的可观察对象。订阅可观察的表单控件属性是在组件类中触发应用逻辑的途径之一。比如:", + "translation": "响应式表单具有一些属性,它们使用可观察对象来监听表单控件的值。\n[`FormControl`](https://angular.cn/api/forms/FormControl) 的 `valueChanges` 属性和 `statusChanges` 属性包含了会发出变更事件的可观察对象。订阅可观察的表单控件属性是在组件类中触发应用逻辑的途径之一。比如:", "sourceFile": "/Users/twer/private/GDE/angular-cn/aio/content/guide/observables-in-angular.md" }, { @@ -23126,7 +23126,7 @@ { "key": "BYTHEENDOFTHECHAPTERYOULLHAVEABASICUNDERSTANDINGOFDEVELOPMENTWITHTHECLIANDAFOUNDATIONFORBOTHTHESEDOCUMENTATIONSAMPLESANDFORREALWORLDAPPLICATIONS", "original": "By the end of the chapter, you'll have a basic understanding of development with the CLI\nand a foundation for both these documentation samples and for real world applications.", - "translation": "在本章的末尾,你会通过 CLI 对开发过程有一个最基本的理解,并将其作为其它文档范例以及真实应用的基础。", + "translation": "在本章的末尾,你会对用 CLI 进行开发有一个最基本的理解,并将其作为其它文档范例以及真实应用的基础。", "sourceFile": "/Users/twer/private/GDE/angular-cn/aio/content/guide/quickstart.md" }, { @@ -23366,7 +23366,7 @@ { "key": "THEMAINENTRYPOINTFORYOURAPPCOMPILESTHEAPPLICATIONWITHTHEJITCOMPILERGUIDEGLOSSARY#JITANDBOOTSTRAPSTHEAPPLICATIONSROOTMODULEAPPMODULETORUNINTHEBROWSERYOUCANALSOUSETHEAOTCOMPILERGUIDEAOTCOMPILERWITHOUTCHANGINGANYCODEBYAPPENDINGTHEAOTFLAGTOTHENGBUILDANDNGSERVECOMMANDS", "original": "The main entry point for your app.\n Compiles the application with the [JIT compiler](guide/glossary#jit)\n and bootstraps the application's root module (`AppModule`) to run in the browser.\n You can also use the [AOT compiler](guide/aot-compiler)\n without changing any code by appending the`--aot` flag to the `ng build` and `ng serve` commands.", - "translation": "这是应用的主要入口点。\n 使用[JIT compiler](guide/glossary#jit)编译器编译本应用,并启动应用的根模块 `AppModule`,使其运行在浏览器中。\n 你还可以使用[AOT compiler](guide/glossary#ahead-of-time-aot-compilation)编译器,而不用修改任何代码 —— 只要给 `ng build` 或 `ng serve` 传入 `--aot` 参数就可以了。", + "translation": "这是应用的主要入口点。\n 使用[JIT 编译器](guide/glossary#jit)编译本应用,并启动应用的根模块 `AppModule`,使其运行在浏览器中。\n 你还可以使用[AOT 编译器](guide/glossary#ahead-of-time-aot-compilation),而不用修改任何代码 —— 只要给 `ng build` 或 `ng serve` 传入 `--aot` 参数就可以了。", "sourceFile": "/Users/twer/private/GDE/angular-cn/aio/content/guide/quickstart.md" }, { @@ -48620,7 +48620,7 @@ { "key": "THETOUROFHEROESTUTORIALCOVERSTHEFUNDAMENTALSOFANGULARINTHISTUTORIALYOUWILLBUILDANAPPTHATHELPSASTAFFINGAGENCYMANAGEITSSTABLEOFHEROES", "original": "The _Tour of Heroes_ tutorial covers the fundamentals of Angular. \nIn this tutorial you will build an app that helps a staffing agency manage its stable of heroes.", - "translation": "**英雄指南**教程涵盖了 Angular 的核心原理。在本教程中,你将构建一个应用,来帮助招聘机构来管理一群英雄。", + "translation": "**英雄指南**教程涵盖了 Angular 的核心原理。在本教程中,你将构建一个应用,来帮助招聘机构管理一群英雄。", "sourceFile": "/Users/twer/private/GDE/angular-cn/aio/content/tutorial/index.md" }, { @@ -48638,7 +48638,7 @@ { "key": "USEBUILTINANGULARDIRECTIVESTOSHOWANDHIDEELEMENTSANDDISPLAYLISTSOFHERODATA", "original": "* Use built-in Angular directives to show and hide elements and display lists of hero data.", - "translation": "使用内置指令来显示 / 隐藏元素,并且显示英雄数据的列表。", + "translation": "使用内置指令来显示 / 隐藏元素,并显示英雄数据的列表。", "sourceFile": "/Users/twer/private/GDE/angular-cn/aio/content/tutorial/index.md" }, { @@ -48872,7 +48872,7 @@ { "key": "1APPCOMPONENTCSSMDASHTHECOMPONENTSPRIVATECSSSTYLES", "original": "1. `app.component.css`— the component's private CSS styles.", - "translation": "`app.component.ts`— 组件的私有 CSS 样式。", + "translation": "`app.component.css`— 组件的私有 CSS 样式。", "sourceFile": "/Users/twer/private/GDE/angular-cn/aio/content/tutorial/toh-pt0.md" }, { @@ -50342,7 +50342,7 @@ { "key": "THEPROVIDERSARRAYTELLSANGULARTOCREATEASINGLESHAREDINSTANCEOFHEROSERVICEANDINJECTINTOANYCLASSTHATASKSFORIT", "original": "The `providers` array tells Angular to create a single, shared instance of `HeroService`\nand inject into any class that asks for it.", - "translation": "`providers` 数组会告诉 Angular 创建 `HeroService` 的单一、共享的实例,并且把它注入到如何请求注入它的类中。", + "translation": "`providers` 数组会告诉 Angular 创建 `HeroService` 的单一、共享的实例,并且把它注入到任何请求注入它的类中。", "sourceFile": "/Users/twer/private/GDE/angular-cn/aio/content/tutorial/toh-pt4.md" }, {