Skip to content

Bug(scope): Duplicate translations when using ssr and [innerHTML] #848

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

Open
1 task done
martijnMedialen opened this issue Apr 7, 2025 · 0 comments
Open
1 task done

Comments

@martijnMedialen
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

In my template file i have:

<p [innerHTML]="'website.submit.text' | transloco"></p>

I am running my application to use serversided rendering

All text in the p is shown 2x, it is there once when the page is returned from the server and then added a second time on the client side

Expected behavior

text is only visible 1 x

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

Transloco Config

Please provide the environment you discovered this bug in

Transloco: 7.6.1
Angular: 17.0.o
Node: v20.11
Package Manager: npm
OS: windows

Browser

all

Additional context

No response

I would like to make a pull request for this bug

No

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