Ng4Persian
Persian Language tools for angular 4 and angular 2, based on angular-cli and Ng4Basic which is basic project based on angular-cli that you can use for creating your own libraries on it.
Installation
npm install -g ng4-persian
Usage
Pipes
pJalali
- Pipe
this pipe will transform date object to jalali (Shamsi) format date.
Example
In angular component
!-- 2017/6/22 --day = new Date2017, 5, 22;
In html
Result
1396/4/1
pNumber
- Pipe
this pipe will transform english number to persian number.
Example
In angular component
number = 123;
In html
Result
۱۲۳
pDigitWords
- Pipe
this pipe will transform english number to persian words.
Example
In angular component
number = 123;
In html
Result
صد و بیست و سه
Contributing
This is a open-source project. Fork the project, complete the code and send pull request.
Thanks Note
pJalali
pipe based on the jalali-moment project, and persianJs and
angular-persian ideas, which are angularJs plugins, used for creating pNumber
and pDigitWords
pipes.
Roadmap
- Complete README.md
pDigitWords
pipe Speed Up- Write and Complete Example app in Project