1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Completed I18N examples descriptions

This commit is contained in:
abdullaev388
2022-02-19 18:56:27 +05:00
parent 93b97fc3fe
commit 10b5886dcc
2 changed files with 13 additions and 1 deletions

View File

@@ -41,6 +41,12 @@ When you delete/update your texts you also need to update them in .po files:
pybabel update -i locales/{domain_name}.pot -d locales
- translate
pybabel compile -d locales
If you have any exceptions check:
- you have installed babel
- translations are ready, so you just compiled it
- in the commands above you replaced {domain_name} to messages
- you are writing commands from correct path in terminal
"""
from functools import wraps