Skip to content

Sinhala Number to Words in JavaScript (si-LK) ​

Use si-LK when your application needs Sinhala number words with Indian number scale and Sri Lankan Rupee currency.

Locale codes: si-LK · Numbering system: Indian · Currency: රුපියල (Rupee) / සත (Cent) · Script: Sinhala

Install ​

bash
npm install to-words

Basic Conversion ​

js
import { ToWords } from 'to-words';

const tw = new ToWords({ localeCode: 'si-LK' });

tw.convert(100);
tw.convert(100000); // one lakh
tw.convert(10000000); // one crore

Currency - Rupee / Cent ​

js
tw.convert(1234.56, { currency: true });
tw.convert('500.00', { currency: true, includeZeroFractional: true });

Ordinal Numbers ​

js
tw.toOrdinal(1);
tw.toOrdinal(10);

Tree-shakeable (single-locale) import ​

js
import { toWords, toCurrency, toOrdinal } from 'to-words/si-LK';

toWords(100000);
toCurrency(999.99);

Locale Codes ​

Locale codeCountryCurrencyNotes
si-LKSri Lankaරුපියල / සතIndian scale; Sinhala script

FAQ ​

Q: Which locale code should I use for Sinhala number-to-words output? Use si-LK.

Q: Does si-LK use the Indian number scale (lakh, crore)? Yes. si-LK uses Indian grouping with lakh and crore as the scale units.

Released under the MIT License.