this library allows you to create translations of projects into other languages
-pip install langmanager
-git clone https://github.com/ASVIEST/LangManager.git
from langmanager import *
language = input('language: ')
lang(language)
trans = translate_get('hello world')
print(lan())
print(trans)
language file(en):
'hello world':'hello world';
And language file(ru):
'hello world':'привет мир';
!language standard file name - lan(ISO 639-1).txt examples: en.txt, ru.txt, zh.txt
!But file name can change through function filepath_en , filepath_ru and others
from langmanager import *
language = input('language: ')
lang(language)
trans = translate_get('hello world')
print(lan())
print(trans)
lang('ru')
filepath_ru('en.txt')
trans = translate_get('hello i')
print(trans)
'hello world':'hello world';
'hello i':'hello i';
And language file(ru):
'hello world':'привет мир';
'hello i':'привет я';