Skip to content

Afrikaans Number to Words in JavaScript (af-ZA) โ€‹

Use af-ZA when your application needs Afrikaans number words for South African invoicing, checkout flows, or legal documents that print totals in full words.

Locale codes: af-ZA ยท Numbering system: Short scale ยท Currency: Rand / Sent ยท Script: Latin

Install โ€‹

bash
npm install to-words

Basic Conversion โ€‹

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

const tw = new ToWords({ localeCode: 'af-ZA' });

tw.convert(100);
tw.convert(1000);
tw.convert(1000000);

Currency - Rand / Sent โ€‹

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

Ordinal Numbers โ€‹

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

Locale Codes โ€‹

Locale codeCountryCurrencyNotes
af-ZASouth AfricaRand / SentStandard Afrikaans number wording

FAQ โ€‹

Q: Which locale code should I use for Afrikaans number-to-words output? Use af-ZA.

Q: Does to-words support Afrikaans ordinal words? Yes. af-ZA includes ordinal mappings so toOrdinal() works without any custom suffix logic.

Released under the MIT License.