Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug(transloco): Structural directive with set language doesn't keep the set language on language change #807

Open
1 task done
guillaume-moreau opened this issue Oct 17, 2024 · 0 comments

Comments

@guillaume-moreau
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Which Transloco package(s) are the source of the bug?

Transloco

Is this a regression?

No

Current behavior

When using the Transloco structural directive with a fixed language, the language is also changed on lang change (eg: calling TranslocoService.setActiveLang)

Expected behavior

The translation should stay with the language set to the directive.

Please provide a link to a minimal reproduction of the bug, if you won't provide a link the issue won't be handled.

https://github.com/guillaume-moreau/repro-bug-transloco

Transloco Config

"@jsverse/transloco": "^7.5.0",

Please provide the environment you discovered this bug in

Transloco: 7.5.0
Angular: 17.3
Node: 20.11.1
Package Manager: npm
OS: Windows 11

Browser

No response

Additional context

No response

I would like to make a pull request for this bug

Yes 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant