1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
TelegramEDT/lang.py

10 lines
236 B
Python
Raw Normal View History

import json
from EDTuser import User
LANG = ["en"]
def lang(user: User, message: str):
language = user.language if user.language in LANG else LANG[0]
return json.loads(open(f"Languages/{language}.json", "r").read())[message]