2.1.0 • Published 6 months ago

ngx-tafgeet v2.1.0

Weekly downloads
-
License
-
Repository
-
Last release
6 months ago

Ngx-Tafgeet

Convert currency digits into written Arabic words for angular.

Installation

Using npm:

npm install ngx-tafgeet --save

Usage example

Module:

Import NgxTafgeetModule from ngx-tafgeet

import { NgxTafgeetModule } from "ngx-tafgeet";

@NgModule({
  imports: [ 
    NgxTafgeetModule.forRoot({currency: 'EGP'}) // Default currency
  ]
})
 {{ 1000 | tafgeet }}

فقط ثمانية ألآف وخمسمائة وستون جنيه مصري وخمسة وثلاثون قرش لا غير

 {{ 1000 | tafgeet: 'SAR' }}

فقط ثمانية ألآف وخمسمائة وستون ريال سعودي وخمسة وثلاثون هللة لا غير

The directive is only used in the input tag

<input type="text" Tafgeet="1000" Currency="SAR" />

Service:

import { TafgeetService } from "ngx-tafgeet";

constructor(private _TafgeetService: TafgeetService) {}
  
GetTafgeet(Digit, Currency?) {
    return this._TafgeetService.convert(Digit, Currency)
}

Note:

If you do not write the currency, the default currency will be used

Supported Currencies:

  1. EGP - Egyptian Pound
  2. SAR - Saudi Riyal
  3. USD - US Dollar
  4. SDG - Sudanese Pound
  5. QAR - Qatari Riyal
  6. TND - Tunisian Dinar
  7. TRY - Turkish Lira
  8. AED - Emirates dirham
  9. AUD - Australian Dollar
1.1.17

6 months ago

2.1.0

6 months ago

2.0.0

6 months ago

1.0.16

1 year ago

1.1.16

1 year ago

1.0.15

1 year ago

1.1.15

1 year ago

0.9.0

2 years ago

1.0.7

2 years ago

0.9.1

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago