Skip to main content

A simple management command to get translations from localise.biz (Loco) for your django app.

Project description

djangoloco

A simple management command to get translations from 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

INSTALLED_APPS = [
    ...
    "djangoloco",
    ...
]

Setup

In your settings.py, set the API key from Loco (get it here)

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djangoloco-1.0.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

djangoloco-1.0-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page