spellNumber
Writes a number in words.
Details #
spellNumber(n, locale?) writes a number out: 1234 is "one thousand two hundred thirty-four". It follows the Mac's language for the locale you give (fr_FR, de_DE), or your own. It is also the spellNumber op of Transform text (with the locale param).
Parameters #
Takes 1 to 2 arguments.
{{ spellNumber(text, b?) }}
Examples #
spellNumber(1234, "en_US")→
one thousand two hundred thirty-fourspellNumber(3, "fr_FR")→
troisGotchas #
Without a locale the words follow the Mac's current language.
Text that is not a number fails with
spellNumber() needs a number.