From 60e1fb7a71376f1943827a3100e55121fdc4e437 Mon Sep 17 00:00:00 2001 From: mehmet-erim Date: Tue, 21 Apr 2020 16:33:22 +0300 Subject: [PATCH] chore: update pofyfills.ts --- templates/module/angular/src/polyfills.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/templates/module/angular/src/polyfills.ts b/templates/module/angular/src/polyfills.ts index aa665d6b87..6e00c561ed 100644 --- a/templates/module/angular/src/polyfills.ts +++ b/templates/module/angular/src/polyfills.ts @@ -1,3 +1,7 @@ +/*************************************************************************************************** + * Load `$localize` onto the global scope - used if i18n tags appear in Angular templates. + */ +import '@angular/localize/init'; /** * This file includes polyfills needed by Angular and is loaded before the app. * You can add your own extra polyfills to this file. @@ -35,7 +39,7 @@ * will put import in the top of bundle, so user need to create a separate file * in this directory (for example: zone-flags.ts), and put the following flags * into that file, and then add the following code before importing zone.js. - * import './zone-flags.ts'; + * import './zone-flags'; * * The flags allowed in zone-flags.ts are listed here. * @@ -55,8 +59,7 @@ /*************************************************************************************************** * Zone JS is required by default for Angular itself. */ -import 'zone.js/dist/zone'; // Included with Angular CLI. - +import 'zone.js/dist/zone'; // Included with Angular CLI. /*************************************************************************************************** * APPLICATION IMPORTS