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-translation-po-0.1.1.tar.gz (1.7 kB view details)

Uploaded Source

File details

Details for the file django-translation-po-0.1.1.tar.gz.

File metadata

  • Download URL: django-translation-po-0.1.1.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for django-translation-po-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5c3990a853f1835a278920bfbc4662630be354a9867e1b16df70d0c069e3ee26
MD5 9368ba1459898c2635da319b9b913a5a
BLAKE2b-256 408a5d0b6d6c79b9b959ad9938052e8414e5122093577bf38d6df5460fad61a5

See more details on using hashes here.

Supported by

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