Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for custom contexts to integrate nestsjs-i18n with nestsjs-telegraf #489

Open
NatashkinAlex opened this issue Apr 23, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@NatashkinAlex
Copy link

Hello,

I am using the nestsjs-i18n library and I want to use it together with nestsjs-telegraf. However, I encountered an issue that the custom resolver does not work due to the lack of support for the Telegraf context.

It would be very helpful if you could add the ability to use custom contexts to ensure compatibility with nestsjs-telegraf and other libraries that may require custom contexts.

@rubiin rubiin added the enhancement New feature or request label Jun 25, 2023
@Susccy
Copy link

Susccy commented Aug 5, 2023

does it work if you set disableMiddleware: true in forRoot options?

@AlexZd
Copy link

AlexZd commented Nov 15, 2024

Same issue here, I'm trying to localize my bot. I didn't understand anything about context, since docs are missing this info. I tried to implement custom resolver, but it is not getting used (not sure what is used instead). Also, I can see such warning:

WARN [I18nService] context type: telegraf not supported

So far, I did workaround to call t method with passing lang parameter directly from service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants