abpframework / abpframework/abp

Angular - Translation not working on refresh

Open
#24,655 5 comments 0 reactions 1 assignee View on GitHub

@sumeyyeKurtulus is already working on this.

Since Jan 15, 2026.

bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.