You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to implement i18n in microservice. its works completely fine in HTTP requests but when I use it in my microservices I get this error
gateway: [Nest] 579618 - 05/26/2024, 11:01:13 AM ERROR [ExceptionsHandler] Internal server error
microservice app:
[Nest] 578651 - 05/26/2024, 11:00:19 AM ERROR [RpcExceptionsHandler] I18n context undefined
I18nError: I18n context undefined
at /home/sg-milad/Downloads/clone/igaming-platform-backend/prediction/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected]/node_modules/nestjs-i18n/src/decorators/i18n.decorator.ts:14:11
at /home/sg-milad/Downloads/clone/igaming-platform-backend/prediction/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@nestjs+platform-exp_3itvyzrtyhpuen4ihidhhpk5f4/node_modules/@nestjs/core/helpers/context-utils.js:43:28
at resolveParamValue (/home/sg-milad/Downloads/clone/igaming-platform-backend/prediction/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_amqp-connection-mana_dmbtl4esns5bxhksz4zyh4cgji/node_modules/@nestjs/microservices/context/rpc-context-creator.js:105:31)
at Array.map (<anonymous>)
I have the exact same issue. I thought I was executing code before the i18n module had loaded but if I manually hard code a language key into my code it works fine, so now I am passing the fallback language key as an environment variable as fallbackLanguage parameter is not working.
Describe the bug
I am trying to implement i18n in microservice. its works completely fine in HTTP requests but when I use it in my microservices I get this error
gateway:
[Nest] 579618 - 05/26/2024, 11:01:13 AM ERROR [ExceptionsHandler] Internal server error
microservice app:
//
this my config in app.module gateway
and my microservice app:
I use rabbitMq
Reproduction
please tell me if the the information i provided is not enough
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: