Closed RezDev94 closed 1 year ago
I'm using this resolver new HeaderResolver(['x-lang'])
new HeaderResolver(['x-lang'])
but when I use the translate method It's not returning the correct translation, It always returns the translation with the fallback language.
this.i18n.translate('test.hello');
So should I always pass the lang parameter to translate method?
Are you sure you are using the library correctly. and
https://github.com/toonvanstrijp/nestjs-i18n/tree/main/samples/dto-validation . Here is the example app used
I'm using this resolver
new HeaderResolver(['x-lang'])
but when I use the translate method It's not returning the correct translation, It always returns the translation with the fallback language.
So should I always pass the lang parameter to translate method?