Replies: 3 comments
-
I see no problem using either of the ready-made packages nestjs-i18n, or telegraf-i18n, both of which will work fine. Maybe you can give some context? Can you show the code and what your problem is? |
Beta Was this translation helpful? Give feedback.
-
@aismai You can disable the warning message by setting:
This does not solve the internationalization problem but disables the warning log. |
Beta Was this translation helpful? Give feedback.
-
In addition to the solutions mentioned by @evilsprut, I’ve developed nestjs-telegraf-i18n, a package that combines the contexts of nestjs-telegraf and nestjs-i18n. It makes the i18n context fully aware of the Telegraf context, allowing you to access translations directly inside your bot handlers.
More examples are in the description of the package: https://www.npmjs.com/package/nestjs-telegraf-i18n |
Beta Was this translation helpful? Give feedback.
-
nestjs-i18n - throws an error
can't resolve i18n context for type: telegraf not supported yet)
Beta Was this translation helpful? Give feedback.
All reactions