DEV Community

ILshat Khamitov
ILshat Khamitov

Posted on

Add multi-language support for telegram bot on NestJS

A lot of changes, I didn’t copy and paste the whole process, I’ll just give a link to the commit, everything is there.

Links - commit with current changes - current bot in telegram

Significant changes:

  1. Added a new lib for switching languages ​​LanguageSwitherModule
  2. Updated old libs and added support for multiple languages
  3. Moved general things about processing commands into a separate module

Significant changes

Screenshots with new logic

Screenshots with new logic

In the next post there will be instructions on how to add new dictionaries with translations...

Top comments (0)