Metadata-Version: 2.1
Name: localtrans
Version: 0.1.0
Summary: 
Author: Oğuz Yeşil
Author-email: oguzyesil17@gmail.com
Requires-Python: >=3.10,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: faker (>=26.1.0,<27.0.0)
Requires-Dist: pydantic (>=2.8.2,<3.0.0)
Requires-Dist: pytest (>=8.3.2,<9.0.0)
Description-Content-Type: text/markdown

# PYTRANSLATOR
PyTranslator is a library that facilitates local translation by reading previously translated content from a .pyt file for you.

## .pyt file structure
### Valid Structure 

    key=value
    key =value
    key= value
    key = value

> you can use any delimiter instead of '='

### Invalid Structure
    
    keyvalue
    key value
    key
    value
    key=
    =key
    value=
    =value

### Example .pyt file
    
    hello=merhaba
    hello world=merhaba dünya
    lorem ipsum is a test text = lorem ipsum bir deneme metnidir

> This is a valid .pyt file ( english to turkish )

### Usage
> pip install pytranslator

#### Basic Usage
```python
from pytranslator.translator import Translate

translator = Translate.initialize('/path/to/pyt/files/directory')

# delimiter's default is = so you don't have to add it into parameters
translated = translator.translate(to_lang='fr', text='hello', delimiter='=')

print(translated)
```


