Skip to content

Replace LazyLocalizationPipe with AsyncLocalizationPipe#24577

Merged
sumeyyeKurtulus merged 3 commits intorel-10.1from
issue-22901
Jan 9, 2026
Merged

Replace LazyLocalizationPipe with AsyncLocalizationPipe#24577
sumeyyeKurtulus merged 3 commits intorel-10.1from
issue-22901

Conversation

@fahrigedik
Copy link
Member

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.

Description

Resolves #22901 (write the related issue number if available)

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.
@fahrigedik fahrigedik added this to the 10.1-final milestone Jan 8, 2026
<i [ngClass]="route.iconClass"></i>
}
{{ route.name | abpLazyLocalization | async }}
{{ route.name | abpAsyncLocalization }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this pipe returns an observable, we need to keep the async pipe here. We should also update the other repositories in the same way.

Appends the async pipe to the abpAsyncLocalization usage in routes.component.html to ensure localized route names are properly resolved from observables.
@sumeyyeKurtulus sumeyyeKurtulus merged commit 975b407 into rel-10.1 Jan 9, 2026
2 of 3 checks passed
@sumeyyeKurtulus sumeyyeKurtulus deleted the issue-22901 branch January 9, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants