Skip to content

A basic implementation for input component that convert Arabic digits to English

License

Notifications You must be signed in to change notification settings

mzaien/ArabicToEnglishInput

Repository files navigation

Arabic to English text input 🌀

Banner


This project aims to demonstrate a simple solution for users trying to write arabic numbers inside an input with type number

Please visit the docs for more info and to see demos

Motivation

After encountering this issue issue in many sites, I decided to make a simple solution for it that works with almost all front end frameworks and libraries.

Thanks for Drahim for the idea. gif


How did I do it

I certainly do not know how to use all frameworks but to this I used Mitosis to generate the input for almost all frameworks used today e.g (React,Solid,Vue,Angular,etc).


References

Conversion function is taken from here.

Changelog

for any new project updates visit changelogs

Missing framework implementations

These are missing framework implementations and some non working ones.
If you want to contribute to this project, you can implement one of these frameworks and open a pr 🤗.

  • Lit implementation is not working properly
  • Flutter thanks to @mub-pro
  • Kotlin
  • Java