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) and the app that you want to translate

LOCO_API_KEY = ...
LOCO_APP = "my_app"

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.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

djangoloco-1.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file djangoloco-1.1.0.tar.gz.

File metadata

  • Download URL: djangoloco-1.1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for djangoloco-1.1.0.tar.gz
Algorithm Hash digest
SHA256 533c3db54d930e019f136d04a9a3f53b47f4f2ecb30f45c8d66662e3a9260ce3
MD5 615a7d93c28b2335b6aac96decfd0897
BLAKE2b-256 afafc5645ffcd26a3547c038ad906fb873adf6dd5f4bb15b04278a527f05c63b

See more details on using hashes here.

File details

Details for the file djangoloco-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: djangoloco-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for djangoloco-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0b278d48e4855c176e2d2c1b295680073ac37d42bb80a4495cdd36e046302e4f
MD5 8e1b90394e4305655f2ba29a5a39e2f2
BLAKE2b-256 71d7ae6f3c948fbef91f9fe1614e423516a3c9eff8c927e6c15464ef49fcbb99

See more details on using hashes here.

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