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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for djangoloco-0.1.tar.gz
Algorithm Hash digest
SHA256 dd1fbff1b96940287557f760d00c7a6f8916e40469c712e32a1cf96b2ab83b00
MD5 3e746634c6cbecc705ceac52e46edaf4
BLAKE2b-256 b93f60dde20c4023677a58413d49f0fce3256ddef6eae15c70c273ca2fa253a4

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for djangoloco-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 70ac6fa30f3c0f7ee4af867b6b8c3a9452520d1274ee296017da5917d649682f
MD5 e3b452598f20cb9148b508f77149c81d
BLAKE2b-256 b1f647b6486a3d75a4cfaa43343271de7812c7d22bb5eddf99104333cb621fb8

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