#Error using astro-i18next

3 messages · Page 1 of 1 (latest)

fervent mural
#

I keep getting this error upon using the Trans component and I have no clue on why...
11:16:28 [200] / 11ms
11:16:28 [ERROR] Cannot read properties of undefined (reading 'replaceAll')
Stack trace:
at Module.interpolate (/fakepath/node_modules/astro-i18next/src/utils.ts:88:45)
at Object.render (/fakepath/node_modules/astro/dist/runtime/server/render/slot.js:24:70)
at renderFragmentComponent (/fakepath/node_modules/astro/dist/runtime/server/render/component.js:341:26)
at /fakepath/node_modules/astro-i18next/src/components/Trans.astro:1:1

torpid irisBOT
#

Hi @fervent mural. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

I'm sorry to hear that you're having trouble with the astro-i18next integration. Unfortunately, the knowledge sources provided do not contain specific information about the error you're encountering with the Trans component in astro-i18next.

However, you can try to create a minimal reproduction of your issue and share it with the Astro community. This is a smaller, simplified Astro project that demonstrates your issue. Having a working reproduction in a new project helps to confirm that this is a repeatable problem, and is not caused by something else in your personal environment or existing project. Sharing a minimal reproduction is helpful when asking for help in Astro's support threads and is often required when filing a bug report to Astro. You can find more information about creating minimal reproductions in the Astro documentation (https://docs.astro.build/en/guides/troubleshooting/#creating-minimal-reproductions).

Additionally, you can alert the Astro team of the problem by creating a GitHub issue. This is the quickest way to get their attention and possibly get a solution to your problem. You can create a new issue here (https://github.com/withastro/docs/issues/new).

I hope this helps, and I wish you the best of luck in resolving your issue!

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: