usablica / persian.js Goto Github PK
View Code? Open in Web Editor NEWA simple library for Persian language localization.
Home Page: http://usablica.github.com/persian.js/
License: MIT License
A simple library for Persian language localization.
Home Page: http://usablica.github.com/persian.js/
License: MIT License
دویصت غلط املایی داره
Telling user to install package via npm/bower is insulting the user, almost waste me an hour to find out it has nothing but 5 useless function and I should copy the file manually from github.
var persianjs = require("persianjs")
persianJs("1000000").digitsToWords().toString();
Expected result: یک میلیون
Returned result: یک میلیون و هزار
I like this lib. But having no type make me sad.
Adding a Jalali Date Object that implements the original javascript data object interface will be great.
I believe there is couple of libraries written in javascript to do this. Embedding one in Persian.js will enrich the framework.
Hi dear Afshin (@afshinm) i create python version of the persianjs at
https://github.com/itmard/persian.py
:)
Currently http://usablica.github.io/persian.js is showing the old api.
Bower repository is so old, please update it!
پنج هزار و دویصت تومان
اصلاح به
پنج هزار و دویست تومان
بی نهایت ممنون از شما
hi,
i'm getting persianJs(...).toPersianChar is not a function
after importing and using it as Doc says
import persianJs from 'persianjs'
then in function
let standardPersian = persianJs(e.data).toPersianChar()
Add a function that change keyboard layout between persian and english ( for example "لخخلمث" to "google" and similar cases)
It would be really nice if you add the ability to convert Persian and Finglish to each other.
i tried to import and use persianJs in reactjs
Why zero width [non] joiner characters being removed as Arabic characters? It's very common source texts consist of them. (e.g. "نوشتهي")
We should add a way to lint.
برای استفاده از wiredep با gulp به این خط احتیاج داریم :
"main": "persian.js"
Great job on this tool. Are there any plans to convert the english characters to Farsi equivalent ?
Maybe this method can be expanded to detect the language and convert appropriately.
persianJs("sghl").switchKey().toString() // سلام
How can I use this library in React Native?
currently it has some errors in react native app;
Hello friends, I would like to move build and publish processes to Travis to enhance contributing to this project.
با تشکر از شما برای ابراز خوبتان. چند پیشنهاد داشتم
۱-ابزاری مانند ویراستیار برای نرمافزار وورد بسازید که بیشتر تایپها آنجا انجام میشود
۲-کدهای جاوا اسکریپت برای جایگزین و تغییر در متن فارسی در ویکیپدیای فارسی توسعه یافتند را در لینکهای زیر هستند
https://fa.wikipedia.org/wiki/مدیاویکی:Gadget-Extra-Editbuttons.js
https://fa.wikipedia.org/wiki/مدیاویکی:Gadget-Extra-Editbuttons-persiantools.js
https://fa.wikipedia.org/wiki/مدیاویکی:Gadget-Extra-Editbuttons-persianwikitools.js
https://fa.wikipedia.org/wiki/مدیاویکی:Gadget-Extra-Editbuttons-dictionary.js
که این ابزار توانایی اصلاح فاصلهٔ مجازی، کلمات مرکب و اشتباهات تایپی و غلطهای املایی متداول را دارد. این ابزار حدود ۲-۳ سال است که در ویکیپدیای فارسی استفاده میشود و بسیاری از باگهای آن گرفته شده است و یونیت تست وپ:تست هم دارد :)
https://fa.wikipedia.org/wiki/مدیاویکی:Gadget-Extra-Editbuttons-tests.js
First of all, thank you for this useful library,
there is a little ambiguation in Readme
file.
in Functions
section number 5 is "Convert to English numbers from Arabic and Persian Number" while number 2 has already mentioned, "Convert to English numbers from Persian Number". so mentioning the Persian Number is not necessary again.
also, in GitHub page, the output for number 2 is in Persian.
سلام دوست عزیز ...
شما لایبرری خیلی خوبی دارید، من که خیلی دوست داشتم، و دوست داشتم همکاری کنم باهاتون تا بتونیم لایبرری رو حتی بهترش هم کنیم.
یه مساله که خیلی دوست داشتم تو لایبرری شما میبود، مقایسه ی کلمات فارسی هست که تقریبا میشه گفت نیاز میشه برای
sort
و..
ممنون میشم اگه اضافه بشه ... البته اینو هم بگم که کد آماده ش رو دارم اگه بخواین اضافه کنید.
it returns error :
persianJs("0")
.englishNumber()
.toString();
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.