tallord
v0.4.0
Published
VERY specific package to convert numbers to norwegian speech
Downloads
1,721
Readme
Tallord
VERY specific package to convert numbers to norwegian speech
Install
yarn add tallord
Use
import {tallord} from "tallord"
import nn from "tallord/i18n/nn"
const word = tallord(12312341) // tolv millioner, tre hundre og tolv tusen, tre hundre og førtién
const otherLocale = tallord(100, nn) // eitt hundre
const yourOwn = tallord(256, {
...nn,
baseSeparator: "-",
tenSeparator: () => ""
}) // to-hundre-femtiseks