semvec/pypi-packages huggingface dataset:
langmanager 1.4.2
this library allows you to create translations of projects into other languages
Requires Python: >=3.1,<4.0
Keywords: lang,langmanager,langs,translate,language,languages,localization

# 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:
<img alt="pypi_icon" src="https://raw.githubusercontent.com/ASVIEST/LangManager/main/mini_pypi_icon.png">

#### installing with pypi

```diff
pip install langmanager
```

<img alt="git_icon" src="https://raw.githubusercontent.com/ASVIEST/LangManager/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':'привет мир';
```

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':'привет я';
```