All Projects → mavihq → persian

mavihq / persian

Licence: MIT license
Some utilities for Persian language in Go (Golang)

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to persian

py-persian-tools
An anthology of a variety of tools for the Persian language in Python
Stars: ✭ 106 (+63.08%)
Mutual labels:  digits, number, persian, persian-language
Wudooh
Browser extension that allows Arabic script modifications for clarity and customization
Stars: ✭ 43 (-33.85%)
Mutual labels:  persian, arabic, farsi
NumPad
Number Pad (inspired by Square)
Stars: ✭ 81 (+24.62%)
Mutual labels:  keyboard, digits, number
Nozha-rtl-Dashboard
Nozha is a rtl / ltr Admin Panel with Dark Mode
Stars: ✭ 31 (-52.31%)
Mutual labels:  persian, arabic, farsi
RitaFontTester
Auxiliary tool for the development of Persian-Arabic fonts
Stars: ✭ 16 (-75.38%)
Mutual labels:  persian, arabic, farsi
discord-guide-fa
اینجا یاد میگیرید چطور از صفر یک دیسکورد بات بسازید 🐱‍🏍
Stars: ✭ 69 (+6.15%)
Mutual labels:  persian, farsi
awesome-persian-youtubers
لیست یوتیوبرهای فارسی‌زبان
Stars: ✭ 52 (-20%)
Mutual labels:  persian, farsi
OpenSourceTutorials-Introduction
Open Source Kotlin Tutorial
Stars: ✭ 38 (-41.54%)
Mutual labels:  persian, farsi
language-detector
Detect the language of text
Stars: ✭ 28 (-56.92%)
Mutual labels:  arabic, farsi
Android Xnumberkeyboard
Android number keyboard view. Android自定义的数字键盘。
Stars: ✭ 149 (+129.23%)
Mutual labels:  keyboard, number
vue-number-keyboard
vue-number-keyboard是基于VUE实现的数字键盘插件,当前支持整数、小数数字输入、乱序键盘,demo中给出了常用的验证码、金额数字示例。数字键盘的大小包括字体尺寸支持响应式。
Stars: ✭ 51 (-21.54%)
Mutual labels:  keyboard, number
react-native-awesome-pin
A highly interactive and customisable PIN code screen for React Native.
Stars: ✭ 28 (-56.92%)
Mutual labels:  keyboard, number
persiantools
Jalali date and datetime with other tools
Stars: ✭ 101 (+55.38%)
Mutual labels:  persian, farsi
from-exponential
Lightweight module to convert number from exponential notation to a human readable string.
Stars: ✭ 27 (-58.46%)
Mutual labels:  convert, number
PersianDataAnnotations
PersianDataAnnotations is ASP.NET Core MVC & ASP.NET MVC Custom Localization DataAnnotations (Localized MVC Errors) for Persian(Farsi) language - فارسی سازی خطاهای اعتبارسنجی توکار ام.وی.سی. و کور.ام.وی.سی. برای نمایش اعتبار سنجی سمت کلاینت
Stars: ✭ 38 (-41.54%)
Mutual labels:  persian, farsi
perke
A keyphrase extractor for Persian
Stars: ✭ 60 (-7.69%)
Mutual labels:  persian, persian-language
matnbaz
📚 The source-code for matnbaz.net. A monorepo containing the back-end (NestJS/Prisma/Apollo), front-end (Next.js/Apollo) and some tooling.
Stars: ✭ 481 (+640%)
Mutual labels:  persian, farsi
Begiresh
Smart Android App Banner for Persian Markets
Stars: ✭ 28 (-56.92%)
Mutual labels:  persian, farsi
Sarrafi
💵 Exchange price application for android
Stars: ✭ 49 (-24.62%)
Mutual labels:  toman, rial
Cashify
💸 Lightweight currency conversion library, successor of money.js
Stars: ✭ 329 (+406.15%)
Mutual labels:  convert, currency

persian

Go Report Card GoDoc

Some utilities for Persian language in Go (Golang).

Installation

go get github.com/mavihq/persian

API

.ToPersianDigits

Converts all English digits in the string to Persian digits.

persian.ToPersianDigits("123salam456")
=> "۱۲۳salam۴۵۶"

.ToPersianDigitsFromInt

Converts integer value to string with Persian digits.

persian.ToPersianDigitsFromInt(123)
=> "۱۲۳"

.ToEnglishDigits

Converts all Persian digits in the string to English digits.

persian.ToEnglishDigits("۱۲۳salam۴۵۶")
=> "123salam456"

.OnlyEnglishNumbers

Extracts only English digits from string.

persian.OnlyEnglishNumbers("123salam۴۵۶")
=> "123"

.OnlyPersianNumbers

Extracts only Persian digits from string.

persian.OnlyPersianNumbers("123salam۴۵۶")
=> "۴۵۶"

.SwitchToPersianKey

Converts English chars to their equivalent Persian char on keyboard.

persian.SwitchToPersianKey("sghl o,fd ? o,fl llk,k")
=> "سلام خوبی ؟ خوبم ممنون"

.SwitchToEnglishKey

Converts Persian chars to their equivalent English char on keyboard.

persian.SwitchToEnglishKey("اثغ صاشفس عح ؟")
=> "hey whats up ?"

.Currency

Formats number to Persian currency style.

persian.Currency("1234567")
=> "۱،۲۳۴،۵۶۷"

.Toman

Formats number to Persian currency style with تومان postfix.

persian.Toman("1234567")
=> "۱،۲۳۴،۵۶۷ تومان"

.Rial

Formats number to Persian currency style with ﷼ postfix.

persian.Rial("1234567")
=> "۱،۲۳۴،۵۶۷ ﷼"

.FixArabic

Used for converting Arabic characters to Persian.

persian.FixArabic("علي")
=> "علی"
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].