From 56964f5862dc0c4bf9e56c59ea382fe466f2b81c Mon Sep 17 00:00:00 2001 From: Fahri Gedik <53567152+fahrigedik@users.noreply.github.com> Date: Thu, 8 Jan 2026 11:19:01 +0300 Subject: [PATCH 1/3] Replace LazyLocalizationPipe with AsyncLocalizationPipe Updated the routes component to use AsyncLocalizationPipe instead of LazyLocalizationPipe for route name localization. Adjusted template bindings to use the new pipe, improving consistency and potentially performance. --- .../components/routes/routes.component.html | 103 ++++++------------ .../lib/components/routes/routes.component.ts | 4 +- 2 files changed, 38 insertions(+), 69 deletions(-) diff --git a/npm/ng-packs/packages/theme-basic/src/lib/components/routes/routes.component.html b/npm/ng-packs/packages/theme-basic/src/lib/components/routes/routes.component.html index 9f4fdd900d2..a7061ff83a6 100644 --- a/npm/ng-packs/packages/theme-basic/src/lib/components/routes/routes.component.html +++ b/npm/ng-packs/packages/theme-basic/src/lib/components/routes/routes.component.html @@ -1,109 +1,78 @@ + \ No newline at end of file diff --git a/npm/ng-packs/packages/theme-basic/src/lib/components/routes/routes.component.ts b/npm/ng-packs/packages/theme-basic/src/lib/components/routes/routes.component.ts index 5bc56ee765a..27463ea497f 100644 --- a/npm/ng-packs/packages/theme-basic/src/lib/components/routes/routes.component.ts +++ b/npm/ng-packs/packages/theme-basic/src/lib/components/routes/routes.component.ts @@ -1,6 +1,6 @@ import { ABP, - LazyLocalizationPipe, + AsyncLocalizationPipe, LocalizationPipe, PermissionDirective, RoutesService, @@ -30,7 +30,7 @@ import { EllipsisDirective } from '@abp/ng.theme.shared'; AsyncPipe, RouterLink, NgbDropdownModule, - LazyLocalizationPipe, + AsyncLocalizationPipe, PermissionDirective, EllipsisDirective, LocalizationPipe, From d0953601dd045ce36e15e9c834ad68f4146b1973 Mon Sep 17 00:00:00 2001 From: Fahri Gedik <53567152+fahrigedik@users.noreply.github.com> Date: Thu, 8 Jan 2026 17:45:16 +0300 Subject: [PATCH 2/3] Add async pipe to abpAsyncLocalization in routes Appends the async pipe to the abpAsyncLocalization usage in routes.component.html to ensure localized route names are properly resolved from observables. --- .../src/lib/components/routes/routes.component.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/npm/ng-packs/packages/theme-basic/src/lib/components/routes/routes.component.html b/npm/ng-packs/packages/theme-basic/src/lib/components/routes/routes.component.html index a7061ff83a6..9ec84892097 100644 --- a/npm/ng-packs/packages/theme-basic/src/lib/components/routes/routes.component.html +++ b/npm/ng-packs/packages/theme-basic/src/lib/components/routes/routes.component.html @@ -10,7 +10,7 @@ @if (route.iconClass) { } - {{ route.name | abpAsyncLocalization }} + {{ route.name | abpAsyncLocalization | async}} @@ -27,7 +27,7 @@ @if (route.iconClass) { } - {{ route.name | abpAsyncLocalization }} + {{ route.name | abpAsyncLocalization | async }}