Metadata-Version: 2.2
Name: basalam.backbone-translation
Version: 1.0.1
Summary: Python Utilities & Basalam Micro-Services SDK
Home-page: https://github.com/basalam/backbone-translation
Author: Mojtabaa Habibain
Author-email: mojtabaa.hn@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-python
Dynamic: summary

#### Requirements

- Python 3.6+

#### Installation & Upgrade

```shell
pip install basalam.backbone-translation
```

#### Usage

```python
from backbone_translation.translator import Translator

translator = Translator({
    "messages.greeting" : "Bonjour {name}"
})

# OR translator = Translator.from_json_file("path_to_json_file")

translator.translate("messages.greeting", name="Mojtabaa")
# Bonjour Mojtabaa
```

#### Testing

```bash
# install pytest
pip install pytest

# run tests
python -m pytest
```

#### Changelog
- 0.0.2 added from_json_file method
- 0.0.3 Now build and push are done using gitlab-ci
- 0.0.4 new `exists(phrase: str) -> bool` method
- 0.1.0 added utf-8 encoding thanks to alimohammayali@gmail.com
