abpframework / abpframework/abp
Angular - Translation not working on refresh
@sumeyyeKurtulus is already working on this.
Since Jan 15, 2026.
- Dominant language
- C#
- Stars
- 14.4k
- Forks
- 3.7k
- Avg merge
- 15h 32m
- Merged PRs (30d)
- 106
Description
Is there an existing issue for this?
- I have searched the existing issues
Description
Hello,
There's a problem with reading translations when a page is reloaded in an Angular application.
Specifically, using localizationService.instant doesn't work.
I saw that tickets have been opened and no solution has been provided yet.
I looked into it and found something. I don't know if it's the best solution, but it works.
Reproduction Steps
No response
Expected behavior
The translation should appear upon reloading.
Actual behavior
The translation is not happening
Regression?
No response
Known Workarounds
What I propose is to add this to the app.config.ts file
provideAppInitializer(() => {
const configState = inject(ConfigStateService);
return firstValueFrom(configState.getAll$()
.pipe(filter((values) => !!values && object.keys(values).length > 0)));
}),
Version
10
User Interface
Angular
Database Provider
EF Core (Default)
Tiered or separate authentication server
None (Default)
Operation System
Windows (Default)
Other information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.