Closed pedrocosta012 closed 10 months ago
Is this indeed a bug or did i do something wrong?
I reopened the issue just because of the doubt in case changing the "lang" using resolvers has no effect on I18nService
I just saw that to use the dynamic language you just need to get it directly from the context as you can see at https://nestjs-i18n.com/quick-start I apologize for the inconvenience and hope this issue can serve as a reference for future library beginners.
Describe the bug
When using
someClassMethod(@I18n() methodName: I18nContext)
the resolvers work perfectly as they should, however when usingconstructor(private readonly i18n: I18nService)
the resolvers have no effectReproduction
// app.module.ts
// app.middleware.ts
// app.controller.ts
System Info
Used Package Manager
yarn
Validations