New Component: Arabic Support

Streamlit Arabic Support Wrapper

This Python package provides tools to support the alignment and proper display of Arabic text in Streamlit applications. It enhances the visual layout of Arabic content by adjusting the directionality and alignment of text and UI components.

APP DEMO

Features

  • Arabic Text Alignment: Ensures that Arabic text in Streamlit components such as markdown, input fields, and alerts is correctly aligned from right to left.
  • Support for Multiple Components: Can apply Arabic text alignment to specific Streamlit components or all supported components at once.
  • Easy Integration: Easily integrate with existing Streamlit applications to improve the display of Arabic text.

Installation

You can install the package using pip:

pip install streamlit-arabic-support-wrapper

Visit the Official Package Site in PyPI here

Usage

First, import the support_arabic_text function from the package and use it in your Streamlit application. Here’s an example of how to use it:

import streamlit as st
from arabic_support import support_arabic_text

# Support Arabic text alignment in all components
support_arabic_text(all=True)

# Application Title
st.title("تجربة دعم اللغة العربية")

# Demonstrating different supported components
st.write("هذا التطبيق يوضح كيفية دعم اللغة العربية في Streamlit.")

Or, You can check the following web application for the Package information as example: Streamlit Arabic Support Wrapper Example App

2 Likes

This is super cool. @basel_mather !

Would love to check out the sample app but it’s not working for me, did you change the URL?

Hi @Jessica_Smith ,

It was sleep for some reason, now it is working correctly.

This is the URL for the App: https://arabic-support.streamlit.app/

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.