From 3f3adc7ae2029fcf878bc66d83cadde0c9bc70ed Mon Sep 17 00:00:00 2001 From: "Joe Martin (Crowdstaffing)" <87730750+josmar-crwdstffng@users.noreply.github.com> Date: Mon, 13 Sep 2021 15:24:00 -0700 Subject: [PATCH] docs: add new internationalization links (#43245) Update link for subtopics of internationalization guide. Clean up markdown. PR Close #43245 --- aio/content/guide/angular-compiler-options.md | 91 ++-- aio/content/guide/architecture-next-steps.md | 90 ++-- aio/content/guide/deprecations.md | 394 ++++++++++-------- aio/content/guide/ivy.md | 50 ++- aio/content/guide/pipes.md | 179 +++----- aio/content/guide/workspace-config.md | 312 +++++++------- 6 files changed, 567 insertions(+), 549 deletions(-) diff --git a/aio/content/guide/angular-compiler-options.md b/aio/content/guide/angular-compiler-options.md index e3a2281e856..7dd600cdf16 100644 --- a/aio/content/guide/angular-compiler-options.md +++ b/aio/content/guide/angular-compiler-options.md @@ -4,21 +4,24 @@ When you use [AOT compilation](guide/aot-compiler), you can control how your app The template options object, `angularCompilerOptions`, is a sibling to the `compilerOptions` object that supplies standard options to the TypeScript compiler. -```json - { - "compilerOptions": { - "experimentalDecorators": true, - ... - }, - "angularCompilerOptions": { - "fullTemplateTypeCheck": true, - "preserveWhitespaces": true, - ... - } + + +{ + "compilerOptions": { + "experimentalDecorators": true, + ... + }, + "angularCompilerOptions": { + "fullTemplateTypeCheck": true, + "preserveWhitespaces": true, + ... } - ``` +} + + {@a tsconfig-extends} + ## Configuration inheritance with extends Like the TypeScript compiler, the Angular AOT compiler also supports `extends` in the `angularCompilerOptions` section of the TypeScript configuration file. @@ -29,7 +32,8 @@ The configuration options from the base file are loaded first, then overridden b For example: -```json + + { "extends": "../tsconfig.json", "compilerOptions": { @@ -42,7 +46,8 @@ For example: ... } } -``` + + For more information, see the [TypeScript Handbook](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html). @@ -58,9 +63,8 @@ When `true`, generate all possible files even if they are empty. Default is `fal Modifies how Angular-specific annotations are emitted to improve tree-shaking. Non-Angular annotations are not affected. One of `static fields` (the default) or `decorators`. -* By default, the compiler replaces decorators with a static field in the class, which allows advanced tree-shakers like [Closure compiler](https://github.com/google/closure-compiler) to remove unused classes. - -* The `decorators` value leaves the decorators in place, which makes compilation faster. TypeScript emits calls to the` __decorate` helper. Use `--emitDecoratorMetadata` for runtime reflection (but note that the resulting code will not properly tree-shake. +* By default, the compiler replaces decorators with a static field in the class, which allows advanced tree-shakers like [Closure compiler](https://github.com/google/closure-compiler) to remove unused classes. +* The `decorators` value leaves the decorators in place, which makes compilation faster. TypeScript emits calls to the `__decorate` helper. Use `--emitDecoratorMetadata` for runtime reflection (but note that the resulting code will not properly tree-shake. ### `annotateForClosureCompiler` @@ -71,8 +75,8 @@ When `true`, use [Tsickle](https://github.com/angular/tsickle) to annotate the e Specifies the compilation mode to use. The following modes are available: -- `'full'`: generates fully AOT-compiled code according to the version of Angular that is currently being used. -- `'partial'`: generates code in a stable, but intermediate form suitable for a published library. +* `'full'`: generates fully AOT-compiled code according to the version of Angular that is currently being used. +* `'partial'`: generates code in a stable, but intermediate form suitable for a published library. The default value is `'full'`. @@ -88,8 +92,8 @@ When `true`, the compiler does not check the TypeScript version and does not rep ### `enableI18nLegacyMessageIdFormat` -Instructs the Angular template compiler to generate legacy IDs for messages that are tagged in templates by the `i18n` attribute. -See [Localizing your app](guide/i18n#mark-text-for-translations) for more information about marking messages for localization. +Instructs the Angular template compiler to generate legacy ids for messages that are tagged in templates by the `i18n` attribute. +See [Mark text for translations][AioGuideI18nCommonPrepareMarkTextForTranslations] for more information about marking messages for localization. Set this option to `false` unless your project relies upon translations that were previously generated using legacy IDs. Default is `true`. @@ -113,7 +117,6 @@ When enabled, the `.js` output of `ngc` does not include any lazy-loaded templat For library projects generated with the CLI, the development configuration default is `true`. - {@a enablelegacytemplate} ### `enableLegacyTemplate` @@ -122,18 +125,13 @@ When `true`, enables use of the `