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 hashes)

Uploaded Source

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