It is a template you can use for creating telegram bot with aiogram 3. It supports internationalization
- 💪 Aiogram (v3)
- 😄 i18n
- 🤹🏽 Loguru
- Python
- Make
git clone git@github.com:lleballex/aiogram-template.git
cd aiogram-template
python3 -m venv env
. env/bin/activate
pip install -r requirements.txtgit clone git@github.com:lleballex/aiogram-template.git
cd aiogram-template
python -m venv env
env\scripts\activate
pip install -r requirements.txtpython src/bot.pyJust create new file in src/handlers folder or its subfolder
from aiogram import Router
my_router = Router()from .my_file import my_router
routers = [my_router]This template uses i18n. So wrap your messages in aiogram.utils.i18n.gettext to make it translatable
More information you can find here
make i18n-extractmkdir locales
pybabel init -i locales/messages.pot -d locales -D messages -l en
make i18n-compilemake i18n-update
