Metadata-Version: 2.1
Name: djangoloco
Version: 1.0
Summary: A simple management command to get translations from localise.biz (Loco) for your django app.
Home-page: https://github.com/thisfro/djangoloco
Author: Jannis Portmann
Author-email: jannis@thisfro.ch
License: BSD-3-Clause
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE

# djangoloco

A simple management command to get translations from [localise.biz](https://localise.biz/) (Loco) for your django app. It will automatically download all the configured locales.

## Install
```
pip install djangoloco
```
Don't forget to enable the app
```python
INSTALLED_APPS = [
    ...
    "djangoloco",
    ...
]
```

## Setup
In your `settings.py`, set the API key from Loco (get it [here](https://localise.biz/help/developers/api-keys))
```python
LOCO_API_KEY = ...
```

## Usage
To pull the translations, run
```
python manage.py loco
```
it will create the files for the enabled languages.

Then you must run `makemessages` and `compilemessages` to actually make and compile the messages for django.
