jsverse / transloco

🚀 😍 The internationalization (i18n) library for Angular
https://jsverse.github.io/transloco/
MIT License
2.01k stars 195 forks source link

Bug(scope): logging "missing translation key" when ssr is enabled #750

Open mackelito opened 7 months ago

mackelito commented 7 months ago

Is there an existing issue for this?

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

Transloco

Is this a regression?

No

Current behavior

when adding

        "server": "apps/consent-site/src/main.server.ts",
        "prerender": true,
        "ssr": {
          "entry": "apps/consent-site/server.ts"
        }

the console loops the error message "missing translation key" making it impossible to load the page.

Expected behavior

Should only log it once like in browser console.

Steps to reproduce

Please provide the environment you discovered this bug in

Transloco: 5.0.10
Angular: 17.0.5
Node: 18
Package Manager: npm
OS: macOS

I would like to make a pull request for this bug

Yes 🚀

shaharkazaz commented 7 months ago

@mackelito You are welcome to open a fix PR 🚀 In future issues please provide a reproduction link, it would be great if you can also attach one here 👍