Skip to main content

Get translated value from django.po file without requesting the language

Project description

Python PO translation

Description:

A package that will read key values and get the translated value from django.po file

Issue & Why the package is created:

I need to send English value and Arabic value to use it in a single page application. I searched for a package or tool to get the translated text from django.py file to use it in my SPA without duplicate the request and specify the language in the header in each request.

This package is useful for developers who need migrate from purly backend to have separated backend and front end and they want to send translated values from their backend to frontend without duplicate the request OR translate the same value in the front end and backend.

Steps:

python manage.py makemessages -l [your-language]

Write the translation value in django.po file. Then

python manage.py compilemessages -l [your-language]

License

MIT

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

django_po_translation_message-0.1.1.tar.gz (1.7 kB view details)

Uploaded Source

File details

Details for the file django_po_translation_message-0.1.1.tar.gz.

File metadata

File hashes

Hashes for django_po_translation_message-0.1.1.tar.gz
Algorithm Hash digest
SHA256 512d672b3fa268d305649a01286432c632fe368c212e336e216bcc55dc7177f8
MD5 c90e8b4804d469e59afa53a7e1097f13
BLAKE2b-256 599a6d3495eea1483841fb7264f9bed58aafc03feef442c12b71a61c3476a90f

See more details on using hashes here.

Provenance

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