1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | // @flow // Hardcoded from the repo until properly modularized // https://github.com/adamwdraper/Numeral-js/blob/master/languages.js export default { es: { delimiters: { thousands: '.', decimal: ',' }, abbreviations: { thousand: 'k', million: 'mm', billion: 'b', trillion: 't' }, ordinal (number: number) { const b = number % 10 return b === 1 || b === 3 ? 'er' : b === 2 ? 'do' : b === 7 || b === 0 ? 'mo' : b === 8 ? 'vo' : b === 9 ? 'no' : 'to' }, currency: { symbol: '$' } } } |