UNPKG

num-beauty

Version:

An ultra lightweight module for formatting numbers into human-friendly strings

31 lines (30 loc) 1.39 kB
export declare const locale: { readonly code: "en-ZA"; readonly name: "English (South Africa)"; readonly masks: { readonly phone: "(##) ###-####"; }; readonly currencies: { readonly ZAR: { readonly symbol: "R"; readonly position: "before"; }; readonly USD: { readonly symbol: "$"; readonly position: "before"; }; }; readonly units: readonly [readonly ["", ""], readonly ["k", "k"], readonly ["m", "m"], readonly ["b", "b"], readonly ["t", "t"]]; readonly speech: { readonly small: readonly ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen"]; readonly tens: readonly ["", "", "twenty", "thirty", "forty", "fifty", "sixty", "seventy", "eighty", "ninety"]; readonly units: readonly [readonly ["", ""], readonly ["thousand", "thousand"], readonly ["million", "million"], readonly ["billion", "billion"], readonly ["trillion", "trillion"]]; readonly point: "point"; readonly minus: "minus"; readonly currency: { readonly ZAR: readonly ["rand", "rand"]; readonly USD: readonly ["dollar", "dollars"]; }; readonly currencyJoiner: " "; }; };