Closed Natchii59 closed 1 year ago
the same problem
Got the same if I don't add the ValidationPipe to the global:
app.useGlobalPipes(
new ValidationPipe(),
new I18nValidationPipe({ transform: true }),
)
but still couldn't make the translation work with DTO
and
. I was not able to replicate
The code can be found here https://github.com/toonvanstrijp/nestjs-i18n/tree/main/samples/dto-validation
I think I have more to do with graphql, but maybe you can help?
If you could provide me a repro. The exception filter is meant to be used with HTTP as far as I know.
no, there is support for graphql. Errors are even translated
Hello, I just tested nestjs-i18n in my nestjs application with a GraphQL api. I would like to use it for DTO validations, to translate my messages.
I have this setup:
app.module.ts
main.ts
create-user.input.ts
When the validations are bad, I get this error.