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

Commit 6e8c57c

Browse files
authored
Fix examples using $localize (#1235)
We weren't importing `@angular/localize` into the Stackblitz template which leads to errors for the examples that use it. Fixes angular/components#27645.
1 parent 160601d commit 6e8c57c

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

src/assets/stack-blitz/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@angular/platform-browser": "^17.0.0",
2222
"@angular/platform-browser-dynamic": "^17.0.0",
2323
"@angular/router": "^17.0.0",
24-
"@angular/ssr": "^17.0.0",
24+
"@angular/localize": "^17.0.0",
2525
"moment": "^2.18.1",
2626
"rxjs": "~7.4.0",
2727
"tslib": "^2.3.0",

src/assets/stack-blitz/src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import '@angular/localize/init';
12
import {importProvidersFrom} from '@angular/core';
23
import {bootstrapApplication} from '@angular/platform-browser';
34
import {provideHttpClient} from '@angular/common/http';

src/assets/stack-blitz/yarn.lock

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,15 @@
212212
dependencies:
213213
tslib "^2.3.0"
214214

215+
"@angular/localize@^17.0.0":
216+
version "17.0.8"
217+
resolved "https://registry.yarnpkg.com/@angular/localize/-/localize-17.0.8.tgz#f2d4d1e2b2e573350c2dae9666a7cf7720be2d36"
218+
integrity sha512-1zW8qWKNMH3r/x4KpwzzUmVY+iN76vYdhjA6gzZDnpJxpon9eyljNEildj9+zSWeNUr2LgJ6HnkIX9q1f3mXfA==
219+
dependencies:
220+
"@babel/core" "7.23.2"
221+
fast-glob "3.3.1"
222+
yargs "^17.2.1"
223+
215224
"@angular/material-moment-adapter@^17.0.0":
216225
version "17.0.0"
217226
resolved "https://registry.yarnpkg.com/@angular/material-moment-adapter/-/material-moment-adapter-17.0.0.tgz#812e267da15c772dac80903e849f6f8301a88bd7"
@@ -294,14 +303,6 @@
294303
dependencies:
295304
tslib "^2.3.0"
296305

297-
"@angular/ssr@^17.0.0":
298-
version "17.0.0"
299-
resolved "https://registry.yarnpkg.com/@angular/ssr/-/ssr-17.0.0.tgz#99694e9a602ab87e64415b8bbf35597551140d31"
300-
integrity sha512-yctZuIR9AA9aaAQe6JzBNbBoRUy37449tYYpwdxmI1Fp5rsrzrlJ1HeFidrmca4k3RWXw3VZNpklPWStlZBm2Q==
301-
dependencies:
302-
critters "0.0.20"
303-
tslib "^2.3.0"
304-
305306
"@assemblyscript/loader@^0.10.1":
306307
version "0.10.1"
307308
resolved "https://registry.yarnpkg.com/@assemblyscript/loader/-/loader-0.10.1.tgz#70e45678f06c72fa2e350e8553ec4a4d72b92e06"

0 commit comments

Comments
 (0)