msaebi031 / i18n-telegraf

MIT License
1 stars 0 forks source link

Issue with implementing ctx.i18n.t("...") in Telegraf's "scenes" #1

Closed Chococoin closed 1 year ago

Chococoin commented 1 year ago

Hello,

Thank you for your contribution. I am currently exploring how to make ctx.i18n.t("...") work in Telegraf's "scenes", and I'm encountering some difficulties. I would appreciate any assistance or guidance on this matter.

Could you please provide more information on how to effectively implement ctx.i18n.t("...") into "scenes" in Telegraf? Any examples or code snippets demonstrating the correct usage would be greatly appreciated. Additionally, if there are any specific configurations or dependencies that need to be considered, please let me know.

Thank you in advance for your help. I'm eager to resolve this issue and make progress with my project.

Best regards, Germán Lugo

msaebi031 commented 1 year ago

Hello Use the same as the examples given And it does not require any special affiliation But if you need more help, contact me on Telegram t.me/Target_Designer

‫‪Germán Lugo‬‏ @.***‬‏> در تاریخ یکشنبه ۲۱ مه ۲۰۲۳ ساعت ۱۰:۱۹ نوشت:‬

Hello,

Thank you for your contribution. I am currently exploring how to make ctx.i18n.t("...") work in Telegraf's "scenes", and I'm encountering some difficulties. I would appreciate any assistance or guidance on this matter.

Could you please provide more information on how to effectively implement ctx.i18n.t("...") into "scenes" in Telegraf? Any examples or code snippets demonstrating the correct usage would be greatly appreciated. Additionally, if there are any specific configurations or dependencies that need to be considered, please let me know.

Thank you in advance for your help. I'm eager to resolve this issue and make progress with my project.

Best regards, Germán Lugo

— Reply to this email directly, view it on GitHub https://github.com/msaebi031/i18n-telegraf/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKR4BH6I5ZDBNJE5ZZXYWCTXHG3HPANCNFSM6AAAAAAYJGUUN4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Chococoin commented 1 year ago

Hi msaebi031,

Thank you for your quick response.

I have found a solution.

Inside the Scene file: ctx.reply(ctx.scene.ctx.i18n.t("test"))

The trouble, maybe, was because I was exporting the Scenes from a subfolder.

Best regards.