Convert Any Number to Words In Angular

Author: AnthonyNahas
Official Page: Go to website
Publish Date: December 7, 2020
License: MIT

Description:

A multi-language number to word converter that converts any number to words in your Angular app.

Supported Languages:

  • en (English, default)
  • ar (Arabic)
  • cz (Czech)
  • dk (Danish)
  • de (German)
  • es (Spanish)
  • fr (French)
  • fa (Farsi)
  • he (Hebrew)
  • it (Italian)
  • ko (Korean)
  • lt (Lithuanian)
  • lv (Latvian)
  • nl (Dutch)
  • no (Norwegian)
  • pl (Polish)
  • pt (Portuguese)
  • ru (Russian)
  • sr (Serbian)
  • tr (Turkish)
  • uk (Ukrainian)

Basic Usage:

1. Install and import the module.

ng add ngx-auth-firebaseui
import { NgxNumToWordsService, SUPPORTED_LANGUAGE } from 'ngx-num-to-words';

2. Basic usage.

<h1>{{numberInWords}}</h1>
numberInWords!: string;
lang!: SUPPORTED_LANGUAGE = 'en';
value = 123;
constructor(private ngxNumToWordsService: NgxNumToWordsService) {}
ngOnInit(): void {
  this.numberInWords = this.ngxNumToWordsService.inWords(value, this.lang);
}

Preview:

Convert Any Number to Words In Angular


You Might Be Interested In:

Add Comment