fix: 支持翻译 CLI 文档

This commit is contained in:
Zhicheng WANG 2021-02-05 21:31:03 +08:00
parent e856d02da7
commit 2ff0ed7c7e
2 changed files with 3 additions and 3 deletions

View File

@ -79,10 +79,10 @@ Learn more in [The App Shell Model](https://developers.google.com/web/fundamenta
欲知详情,参阅[应用外壳模型](https://developers.google.com/web/fundamentals/architecture/app-shell)。 欲知详情,参阅[应用外壳模型](https://developers.google.com/web/fundamentals/architecture/app-shell)。
You can use the Angular CLI to [generate](cli/generate#appshell) an app shell. You can use the Angular CLI to [generate](cli/generate#app-shell) an app shell.
This can improve the user experience by quickly launching a static rendered page (a skeleton common to all pages) while the browser downloads the full client version and switches to it automatically after the code loads. This can improve the user experience by quickly launching a static rendered page (a skeleton common to all pages) while the browser downloads the full client version and switches to it automatically after the code loads.
你可以使用 Angular CLI 来[生成](cli/generate#appshell)一个应用外壳。 你可以使用 Angular CLI 来[生成](cli/generate#app-shell)一个应用外壳。
它可以在浏览器下载完整版应用之前,先快速启动一个静态渲染页面(所有页面的公共骨架)来增强用户体验,等代码加载完毕后再自动切换到完整版。 它可以在浏览器下载完整版应用之前,先快速启动一个静态渲染页面(所有页面的公共骨架)来增强用户体验,等代码加载完毕后再自动切换到完整版。
See also [Service Worker and PWA](guide/service-worker-intro). See also [Service Worker and PWA](guide/service-worker-intro).

View File

@ -5,7 +5,7 @@ const {CONTENTS_PATH} = require('../config');
const cliGitRef = process.argv[2] || 'master'; // Can be a branch, commit or tag. const cliGitRef = process.argv[2] || 'master'; // Can be a branch, commit or tag.
const pkgContent = JSON.stringify({ const pkgContent = JSON.stringify({
dependencies: { dependencies: {
'@angular/cli': `https://github.com/angular/cli-builds#${cliGitRef}`, '@angular/cli': `https://github.com/ng-docs/angular-cli-cn-prebuilt#11.2.x`,
}, },
}, null, 2); }, null, 2);