Skip to main content

streamlit-gettext

Tests Documentation
PyPI Supported Python versions

🚧 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 browser detection is active, streamlit-gettext checks each user's browser language whenever it translates a message. This lets users sharing the same deployed app see different languages. Calling set_preferred_languages() overrides browser detection for that session; passing None or an empty iterable restores it.

See a working app that uses streamlit-gettext: https://github.com/dfint/package-build

Get started with the complete setup guide.

TODO:

  • example application
    Streamlit App
  • 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.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for streamlit-gettext 0.2.0
File Size Uploaded Provenance Actions
streamlit_gettext-0.2.0.tar.gz 5.1 kB With provenance Details for streamlit_gettext-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for streamlit-gettext 0.2.0
File Interpreter ABI Platform Actions
streamlit_gettext-0.2.0-py3-none-any.whl Python 3 none any Details for streamlit_gettext-0.2.0-py3-none-any.whl

Total release size: 10.3 kB

Release files / streamlit_gettext-0.2.0.tar.gz

Download URL streamlit_gettext-0.2.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4cfcd3a663a3e522bdb313c53c02c7752e35829d5abd07a76262c338c4084a65
BLAKE2b-256 checksum
How to use checksums
6cf6ec22cf66be72f8ba7757fb0db82bc0d18380bb7e153105791352c196349d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / streamlit_gettext-0.2.0-py3-none-any.whl

Download URL streamlit_gettext-0.2.0-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6aeb447b847aeab7fc0249e44b5eae4515684305a7237936bd57dbf4be9d4756
BLAKE2b-256 checksum
How to use checksums
5542233bbea9c54b7182d5bfbc9a34f97b2ab7ea245103fd7ed116cdc02072e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Security for streamlit-gettext 0.2.0

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.

Select from 2 files

Attestation for streamlit_gettext-0.2.0.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 Nov 17, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page