Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit 1e625b4

Browse files
authored
Setup @angular/localize in docs app to enable examples show-casing i18n (#991)
1 parent 4e08b84 commit 1e625b4

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"@angular/core": "^12.0.0",
4545
"@angular/forms": "^12.0.0",
4646
"@angular/google-maps": "^12.0.1",
47+
"@angular/localize": "^12.0.1",
4748
"@angular/material": "^12.0.1",
4849
"@angular/material-experimental": "^12.0.1",
4950
"@angular/material-moment-adapter": "^12.0.1",
@@ -66,7 +67,6 @@
6667
"@angular-eslint/template-parser": "4.0.0",
6768
"@angular/cli": "^12.0.0",
6869
"@angular/compiler-cli": "^12.0.0",
69-
"@angular/localize": "^12.0.0",
7070
"@types/imagemin": "^7.0.0",
7171
"@types/jasmine": "^3.6.6",
7272
"@types/node": "^14.14.22",

src/polyfills.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,8 @@ import 'zone.js'; // Included with Angular CLI.
6464
/***************************************************************************************************
6565
* APPLICATION IMPORTS
6666
*/
67+
68+
// Examples might use `$localize`, so we initialize the localize package. Note that we do not
69+
// intend to load any translations at runtime. `$localize` has a pass-through mode where it does
70+
// not actually translate content. This is what we want to use for our examples.
71+
import '@angular/localize/init';

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,10 +270,10 @@
270270
"@types/googlemaps" "^3.43.1"
271271
tslib "^2.1.0"
272272

273-
"@angular/localize@^12.0.0":
274-
version "12.0.0"
275-
resolved "https://registry.yarnpkg.com/@angular/localize/-/localize-12.0.0.tgz#dbe60215fe54ccc3e32d915bf9e4d742988cf3db"
276-
integrity sha512-vJ/xeIhF4odmSgf2XAAIb57AmUgS1DiprQeeG5aY1lZ9ZMBDC1BkeONseQDBg0d9HkT9KdqElDBuSMGfQfzEkw==
273+
"@angular/localize@^12.0.1":
274+
version "12.0.1"
275+
resolved "https://registry.yarnpkg.com/@angular/localize/-/localize-12.0.1.tgz#6477066b6e4830c9dffa931064794108961d4364"
276+
integrity sha512-+nLvfbX2tQUMCDILlUOhb1o3B7DzcJgrEy3QEG3dGkT7A7RjA5zShXN+CXuaeEMlTSGURVx3IEzuudpGcgLz9Q==
277277
dependencies:
278278
"@babel/core" "7.8.3"
279279
glob "7.1.7"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy