How to use numeral.locale:
222 223 224 225 226 227 228 229 230 231
symbol: 'Fr.' } }); } numeral.locale('ch'); let arData = await Journal.findAll( { where: sequelize.where(sequelize.fn('YEAR', sequelize.col('date')), sjahr),
How to use numeral.register:
202 203 204 205 206 207 208 209 210 211
locale.delimiters = { thousands: ' ', decimal: '.' }; } catch (error) { numeral.register('locale', 'ch', { delimiters: { thousands: ' ', decimal: '.' },
How to use numeral.localeData:
GitHub: outaTiME/ambito-dolar
87 88 89 90 91 92 93 94 95 96 97 98
const FRACTION_DIGITS = 2; // api uses the chosen locale and the client its own locale (except on web) const setDelimiters = ({ thousands, decimal }) => { const localeData = numeral.localeData(); Object.assign(localeData.delimiters, { ...(thousands && { thousands }), ...(decimal && { decimal }), });