Metadata-Version: 2.1
Name: langmanager
Version: 1.3.3
Summary: this library allows you to create translations of projects into other languages
Home-page: https://github.com/ASVIEST/LangManager
Author: ASVI
Author-email: aaaaaabbbbbbccscc@gmail.com
Requires-Python: >=3.1,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Project-URL: Repository, https://github.com/ASVIEST/LangManager
Description-Content-Type: text/markdown

# LangManager

![Image alt](https://img.shields.io/github/license/ASVIEST/LangManager?logo=GitHub&logoColor=orange&style=flat-square)
![GitHub repo size](https://img.shields.io/github/repo-size/ASVIEST/LangManager?color=green&label=size&logo=GitHub&logoColor=cAF7a6&style=flat-square)
![PyPI](https://img.shields.io/pypi/v/langmanager?color=yellow&label=version&logo=pypi&logoColor=orange&style=flat-square)

this library allows you to create translations of projects into other languages

## install:
![Image alt](https://github.com/ASVIEST/LangManager/blob/main/mini_pypi_icon.png)
#### installing with pypi
```diff
-pip install langmanager
```
![Image alt](https://github.com/ASVIEST/LangManager/blob/main/mini_git_icon.png)
#### installing with git
```diff
-git clone https://github.com/ASVIEST/LangManager.git
```

#### Simple example:
```python
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':'привет мир';
```
```diff
!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
```
###### language can be changed during working
#### improved example:
```python
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':'привет я';
```
