UNPKG

tanisa

Version:

A utility to convert Malagasy 🇲🇬 numbers, dates, and times into their word representations.

96 lines (95 loc) • 2.55 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MalagasyNumerals = void 0; exports.MalagasyNumerals = { GLUE_SY: ' sy ', GLUE_AMBY: ' amby ', GLUE_AMBIN_NY: " ambin'ny ", GLUE_FAINGO: ' faingo ', GLUE_DECIMAL_ZERO: 'aotra ', CUSTOM_ONE: 'iraika', ZERO: 'aotra', DIGITS: [ '', 'iray', 'roa', 'telo', 'efatra', 'dimy', 'enina', 'fito', 'valo', 'sivy', ], TENS: [ '', 'folo', 'roapolo', 'telopolo', 'efapolo', 'dimampolo', 'enimpolo', 'fitopolo', 'valopolo', 'sivifolo', ], HUNDREDS: [ '', 'zato', 'roanjato', 'telonjato', 'efajato', 'dimanjato', 'eninjato', 'fitonjato', 'valonjato', 'sivinjato', ], LARGE_NUMBER_UNITS: [ { threshold: 1000000000000000000, name: 'tsipesimpesinafaharoa' }, { threshold: 100000000000000000, name: 'alinkisafaharoa' }, { threshold: 10000000000000000, name: 'lavitrisafaharoa' }, { threshold: 1000000000000000, name: 'tsitamboisafaharoa' }, { threshold: 100000000000000, name: 'safatsiroafaharoa' }, { threshold: 10000000000000, name: 'tsitanoanoa' }, { threshold: 1000000000000, name: 'tsitokotsiforohana' }, { threshold: 100000000000, name: 'tsipesimpesina' }, { threshold: 10000000000, name: 'alinkisa' }, { threshold: 1000000000, name: 'lavitrisa' }, { threshold: 100000000, name: 'tsitamboisa' }, { threshold: 10000000, name: 'safatsiroa' }, { threshold: 1000000, name: 'tapitrisa' }, { threshold: 100000, name: 'hetsy' }, { threshold: 10000, name: 'alina' }, { threshold: 1000, name: 'arivo' }, ], MAX_SUPPORTED_INTEGER: 1000000000000000000 * 1000, MONTHS: [ '', 'Janoary', 'Febroary', 'Martsa', 'Aprily', 'Mey', 'Jona', 'Jolay', 'Aogositra', 'Septambra', 'Oktobra', 'Novambra', 'Desambra', ], FIRST_OF_MONTH: "voalohan'ny volana", TIME_PERIODS: { MARAINA: 'maraina', ANTOANDRO: 'antoandro', TOLAKANDRO: 'tolakandro', HARIVA: 'hariva', ALINA: 'alina', }, HOUR_UNIT: 'ora', MINUTE_UNIT: 'minitra', SECOND_UNIT: 'segondra', YEAR_UNIT: 'taona', CONJ_SY: 'sy', };