locale_selector
A simple language selector pop-up modal for Django/Wagtail.
Has 2 integrated backends for wagtail-localize translate page subtree tasks.
locale_selector.jobs.ThreadedBackendlocale_selector.tasks.CeleryBackend
Quick start
- Add 'locale_selector' to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [
...,
'locale_selector',
]
- Add the following staticfiles accordingly:
locale_selector/css/locale_selector.css
locale_selector/js/locale_selector.js
- Use the templatetag in your base.html:
{% load locale_selector %}
...
{# maintainer Which maintainer do you want to display #}
{# maintainer_site Which maintainer site do you want to display #}
{# current_flag Show the flag for the current language #}
{# modal Show a modal or banner #}
{# sticky Make the modal/banner open/close button sticky in the document #}
{% locale_selector current_flag=True modal=False sticky=True %}
Metadata
Release files for locale-selector 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| locale_selector-1.0.4.tar.gz | 1.2 MB | Without provenance | Details for locale_selector-1.0.4.tar.gz |
Release files / locale_selector-1.0.4.tar.gz
| Download URL | locale_selector-1.0.4.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
57b8942073365b74bd3c46376c2d8532066ef18a4a4a5319e7f3f866ab1632b5
|
|
BLAKE2b-256 checksum How to use checksums |
fc2f587db95598cfa24a215def7a57b357cfd9a79c7884dc3e408745a9735d82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.6
|
Security for locale-selector 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.