streamlit-gettext
🚧 WORK IN PROGRESS 🚧
A Streamlit extension that makes it easy to localize your apps. It detects users' preferred languages from their browsers and displays the app in the appropriate language. It avoids a common issue when using gettext in Streamlit: if the browser language is detected only once at startup, all users may see the app in the same language.
When a Streamlit app is deployed, reading the browser language only once at startup can cause every user to see the language detected for the first person who opened the app. streamlit-gettext avoids this by checking each user's browser language whenever it translates a message, so users sharing the same app can see it in different languages.
See a working app that uses streamlit-gettext: https://github.com/dfint/package-build
TODO:
- example application
- tests
- documentation
- support for manually switching languages, with the browser's preferred language selected by default
- examples of translations with context
- ...
Feedback and suggestions are welcome.
Metadata
Release files for streamlit-gettext 0.1.2
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 |
|---|---|---|---|---|
| streamlit_gettext-0.1.2.tar.gz | 4.4 kB | With provenance | Details for streamlit_gettext-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| streamlit_gettext-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for streamlit_gettext-0.1.2-py3-none-any.whl |
Total release size: 8.8 kB
Release files / streamlit_gettext-0.1.2.tar.gz
| Download URL | streamlit_gettext-0.1.2.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3bf470a7ecfc8a4a51baeaa8730ff6ee5fe173c522c831f87ce7af7ce70401f
|
|
BLAKE2b-256 checksum How to use checksums |
f73b273dd64775f1895e587f8398116a93726f73c9f903b4f025002aed7216ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.
Transparency logRelease files / streamlit_gettext-0.1.2-py3-none-any.whl
| Download URL | streamlit_gettext-0.1.2-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e406ed60735b275422f550083d16b14dc007532ea9643767d9760098ff0162e0
|
|
BLAKE2b-256 checksum How to use checksums |
03af00af038dd1995deae88ff50d3b2593f4b7bde11bc37bf5278e90f0a917a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.
Transparency logSecurity for streamlit-gettext 0.1.2
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for streamlit_gettext-0.1.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.
Transparency logA 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.