All Projects

Streamlit Arabic Support Wrapper.

One function call to fix Arabic text alignment across Streamlit components.

OthersArchived — v1.1v1.1Apache 2.071,800+
7
GitHub stars
GitHub
1.1
Latest version
2
PyPI releases
1,800+
Milestone downloads

Overview

Problem

Streamlit doesn't align Arabic text correctly out of the box

st.write, st.markdown, text inputs, selectboxes, and alerts all render Arabic left-aligned by default. This wrapper patches directionality across the components you choose, in one call at the top of the app.

Supported components

Selective or blanket support

support_arabic_text(all=True) covers everything; support_arabic_text(components=[...]) scopes it to just the ones you need.

write / markdown
text_input / text_area
selectbox / multiselect
warning / success / error

How it works

support_arabic_text() intercepts the Streamlit components you list and applies RTL-correct alignment before they render.

Call once
support_arabic_text(all=True)
Every component
write, markdown, inputs, alerts
Renders RTL-correct
no per-string wrapping needed

Install & use

PyPI
$ pip install streamlit-arabic-support-wrapper
quick start
$ import streamlit as st
$ from arabic_support import support_arabic_text
 
$ support_arabic_text(all=True)
$ st.title("تجربة دعم اللغة العربية")

Built with

Python
core package
Streamlit
the framework it patches