All files / src/i18n es-larga.ts

100% Statements 113/113
100% Branches 1/1
100% Functions 1/1
100% Lines 113/113

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 1131x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 15000x 15000x 15000x 15000x 1x 1x 1x
import {ITranslation} from "../interfaces/ITranslation";
 
export const Spanish: ITranslation = {
    unitSeparator: ' y ',
    orderSeparator: ' ',
    ignoreHundredsSeparator: true,
    units: {
        0: 'cero',
        1: {
            male: 'uno',  //TODO ta errado
            female: 'una',
            neutral: 'uno'
        },
        2: {
            male: 'dos',
            female: 'dos',
            neutral: 'dos'
        },
        3: "tres",
        4: "cuatro",
        5: "cinco",
        6: "seis",
        7: "siete",
        8: "ocho",
        9: "nueve",
        10: "diez",
        11: "once",
        12: "doce",
        13: "trece",
        14: "catorze",
        15: "quince",
        16: "dieciséis",
        17: "ciecisiete",
        18: "dieciocho",
        19: "diecinueve",
        20: "veinte",
        21: "veintiuno",
        22: "veintidós",
        23: "veintitrés",
        24: "veinticuatro",
        25: "veinticinco",
        26: "veintiséis",
        27: "veintisiete",
        28: "veintiocho",
        29: "veintinueve",
    },
    tenths: {
        20: "veinte",
        30: "treinta",
        40: "cuarenta",
        50: "cincuenta",
        60: "sesenta",
        70: "setenta",
        80: "ochenta",
        90: "noventa",
    },
    hundreds: {
        100: "cien",
        200: "doscientos",
        300: "trescientos",
        400: "cuatrocientos",
        500: "quinientos",
        600: "seiscientos",
        700: "setecientos",
        800: "ochocientos",
        900: "novecientos",
    },
    other: [
        {
            exponent: 2,
            all: 'cien'
        },
        {
            exponent: 3,
            all: "mil",
        },
        {
            exponent: 6,
            singular: "millón",
            plural: "millones"
        },
        {
            exponent: 9,
            singular: "billón",
            plural: "billones"
        },
        {
            exponent: 12,
            singular: "trillón",
            plural: "trillones"
        },
        {
            exponent: 15,
            singular: "quatrillón",
            plural: "quadrillones"
        },
        {
            exponent: 18,
            singular: "quintillón",
            plural: "quintillones"
        },
    ],
    exceptions: [
        {
            type: 'post',
            func: (value): string => {
                return value
                    .replace(/\buno mil\b/gi, 'mil')
                    .replace(/\buno cien\b/gi, 'ciento')
            }
        }
    ]
}