We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
$localize
1 parent d775fa1 commit 7b3d269Copy full SHA for 7b3d269
packages/core/src/core.ts
@@ -50,7 +50,7 @@ if (typeof ngDevMode !== 'undefined' && ngDevMode) {
50
// This helper is to give a reasonable error message to people upgrading to v9 that have not yet
51
// installed `@angular/localize` in their app.
52
// tslint:disable-next-line: no-toplevel-property-access
53
- global.$localize = global.$localize || function() {
+ global.$localize ??= function() {
54
throw new Error(
55
'It looks like your application or one of its dependencies is using i18n.\n' +
56
'Angular 9 introduced a global `$localize()` function that needs to be loaded.\n' +
0 commit comments