diff --git a/lib/locales/de-DE/internet/index.js b/lib/locales/de-DE/internet/index.js index 1e8f4426..c1ee87ff 100644 --- a/lib/locales/de-DE/internet/index.js +++ b/lib/locales/de-DE/internet/index.js @@ -9,46 +9,10 @@ module.exports = { "ch" ], - userName(firstName, lastName) { - firstName = this.slugify(firstName ? firstName : this.populate("#{names.firstName}")).toLowerCase(); - lastName = this.slugify(lastName ? lastName : this.populate("#{names.lastName}")).toLowerCase(); - - return this.populate(this.random.arrayElement([ - `${lastName}.${firstName}`, - `${lastName}.${firstName}##`, - `${lastName}.${firstName}####`, - `${lastName}_${firstName}`, - `${lastName}_${firstName}##`, - `${lastName}${firstName}##`, - `${lastName}##` - ])); - }, - - domain() { - return this.slugify(this.populate(this.random.arrayElement([ - "#{names.lastName}", - "#{names.lastName}#{names.firstName}", - "#{names.lastName}-#{names.firstName}" - ]))).toLowerCase() + "." + this.random.arrayElement(module.exports.tld); - }, - emailDomain: [ "gmail.com", "yahoo.com", "hotmail.com" ], - email(firstName, lastName, domain) { - firstName = this.slugify(firstName ? firstName : this.populate("#{names.firstName}")).toLowerCase(); - lastName = this.slugify(lastName ? lastName : this.populate("#{names.lastName}")).toLowerCase(); - domain = domain ? domain : this.populate("#{internet.emailDomain}"); - - return [ - `${lastName}.${firstName}@${domain}`, - `${lastName}.${firstName}##@${domain}`, - `${lastName}${firstName}##@${domain}`, - `${lastName}##@${domain}` - ]; - } - }; \ No newline at end of file diff --git a/lib/locales/es-ES/address/cityName.js b/lib/locales/es-ES/address/cityName.js new file mode 100644 index 00000000..1976f3da --- /dev/null +++ b/lib/locales/es-ES/address/cityName.js @@ -0,0 +1,131 @@ +module.exports = [ + "Parla", + "Telde", + "Baracaldo", + "San Fernando", + "Torrevieja", + "Lugo", + "Santiago de Compostela", + "Gerona", + "Cáceres", + "Lorca", + "Coslada", + "Talavera de la Reina", + "El Puerto de Santa María", + "Cornellá de Llobregat", + "Avilés", + "Palencia", + "Gecho", + "Orihuela", + "Pontevedra", + "Pozuelo de Alarcón", + "Toledo", + "El Ejido", + "Guadalajara", + "Gandía", + "Ceuta", + "Ferrol", + "Chiclana de la Frontera", + "Manresa", + "Roquetas de Mar", + "Ciudad Real", + "Rubí", + "Benidorm", + "San Sebastían de los Reyes", + "Ponferrada", + "Zamora", + "Alcalá de Guadaira", + "Fuengirola", + "Mijas", + "Sanlúcar de Barrameda", + "La Línea de la Concepción", + "Majadahonda", + "Sagunto", + "El Prat de LLobregat", + "Viladecans", + "Linares", + "Alcoy", + "Irún", + "Estepona", + "Torremolinos", + "Rivas-Vaciamadrid", + "Molina de Segura", + "Paterna", + "Granollers", + "Santa Lucía de Tirajana", + "Motril", + "Cerdañola del Vallés", + "Arrecife", + "Segovia", + "Torrelavega", + "Elda", + "Mérida", + "Ávila", + "Valdemoro", + "Cuenta", + "Collado Villalba", + "Benalmádena", + "Mollet del Vallés", + "Puertollano", + "Madrid", + "Barcelona", + "Valencia", + "Sevilla", + "Zaragoza", + "Málaga", + "Murcia", + "Palma de Mallorca", + "Las Palmas de Gran Canaria", + "Bilbao", + "Córdoba", + "Alicante", + "Valladolid", + "Vigo", + "Gijón", + "Hospitalet de LLobregat", + "La Coruña", + "Granada", + "Vitoria", + "Elche", + "Santa Cruz de Tenerife", + "Oviedo", + "Badalona", + "Cartagena", + "Móstoles", + "Jerez de la Frontera", + "Tarrasa", + "Sabadell", + "Alcalá de Henares", + "Pamplona", + "Fuenlabrada", + "Almería", + "San Sebastián", + "Leganés", + "Santander", + "Burgos", + "Castellón de la Plana", + "Alcorcón", + "Albacete", + "Getafe", + "Salamanca", + "Huelva", + "Logroño", + "Badajoz", + "San Cristróbal de la Laguna", + "León", + "Tarragona", + "Cádiz", + "Lérida", + "Marbella", + "Mataró", + "Dos Hermanas", + "Santa Coloma de Gramanet", + "Jaén", + "Algeciras", + "Torrejón de Ardoz", + "Orense", + "Alcobendas", + "Reus", + "Calahorra", + "Inca" +]; diff --git a/lib/locales/es-ES/address/countryWithCodes.js b/lib/locales/es-ES/address/countryWithCodes.js new file mode 100644 index 00000000..aca916e9 --- /dev/null +++ b/lib/locales/es-ES/address/countryWithCodes.js @@ -0,0 +1,257 @@ +/* Datasource: https://github.com/umpirsky/country-list */ + +module.exports = { + "AF": "Afghanistan", + "AX": "\u00c5land Islands", + "AL": "Albania", + "DZ": "Algeria", + "AS": "American Samoa", + "AD": "Andorra", + "AO": "Angola", + "AI": "Anguilla", + "AQ": "Antarctica", + "AG": "Antigua & Barbuda", + "AR": "Argentina", + "AM": "Armenia", + "AW": "Aruba", + "AC": "Ascension Island", + "AU": "Australia", + "AT": "Austria", + "AZ": "Azerbaijan", + "BS": "Bahamas", + "BH": "Bahrain", + "BD": "Bangladesh", + "BB": "Barbados", + "BY": "Belarus", + "BE": "Belgium", + "BZ": "Belize", + "BJ": "Benin", + "BM": "Bermuda", + "BT": "Bhutan", + "BO": "Bolivia", + "BA": "Bosnia & Herzegovina", + "BW": "Botswana", + "BR": "Brazil", + "IO": "British Indian Ocean Territory", + "VG": "British Virgin Islands", + "BN": "Brunei", + "BG": "Bulgaria", + "BF": "Burkina Faso", + "BI": "Burundi", + "KH": "Cambodia", + "CM": "Cameroon", + "CA": "Canada", + "IC": "Canary Islands", + "CV": "Cape Verde", + "BQ": "Caribbean Netherlands", + "KY": "Cayman Islands", + "CF": "Central African Republic", + "EA": "Ceuta & Melilla", + "TD": "Chad", + "CL": "Chile", + "CN": "China", + "CX": "Christmas Island", + "CC": "Cocos (Keeling) Islands", + "CO": "Colombia", + "KM": "Comoros", + "CG": "Congo - Brazzaville", + "CD": "Congo - Kinshasa", + "CK": "Cook Islands", + "CR": "Costa Rica", + "CI": "C\u00f4te d\u2019Ivoire", + "HR": "Croatia", + "CU": "Cuba", + "CW": "Cura\u00e7ao", + "CY": "Cyprus", + "CZ": "Czech Republic", + "DK": "Denmark", + "DG": "Diego Garcia", + "DJ": "Djibouti", + "DM": "Dominica", + "DO": "Dominican Republic", + "EC": "Ecuador", + "EG": "Egypt", + "SV": "El Salvador", + "GQ": "Equatorial Guinea", + "ER": "Eritrea", + "EE": "Estonia", + "ET": "Ethiopia", + "FK": "Falkland Islands", + "FO": "Faroe Islands", + "FJ": "Fiji", + "FI": "Finland", + "FR": "France", + "GF": "French Guiana", + "PF": "French Polynesia", + "TF": "French Southern Territories", + "GA": "Gabon", + "GM": "Gambia", + "GE": "Georgia", + "DE": "Germany", + "GH": "Ghana", + "GI": "Gibraltar", + "GR": "Greece", + "GL": "Greenland", + "GD": "Grenada", + "GP": "Guadeloupe", + "GU": "Guam", + "GT": "Guatemala", + "GG": "Guernsey", + "GN": "Guinea", + "GW": "Guinea-Bissau", + "GY": "Guyana", + "HT": "Haiti", + "HN": "Honduras", + "HK": "Hong Kong SAR China", + "HU": "Hungary", + "IS": "Iceland", + "IN": "India", + "ID": "Indonesia", + "IR": "Iran", + "IQ": "Iraq", + "IE": "Ireland", + "IM": "Isle of Man", + "IL": "Israel", + "IT": "Italy", + "JM": "Jamaica", + "JP": "Japan", + "JE": "Jersey", + "JO": "Jordan", + "KZ": "Kazakhstan", + "KE": "Kenya", + "KI": "Kiribati", + "XK": "Kosovo", + "KW": "Kuwait", + "KG": "Kyrgyzstan", + "LA": "Laos", + "LV": "Latvia", + "LB": "Lebanon", + "LS": "Lesotho", + "LR": "Liberia", + "LY": "Libya", + "LI": "Liechtenstein", + "LT": "Lithuania", + "LU": "Luxembourg", + "MO": "Macau SAR China", + "MK": "Macedonia", + "MG": "Madagascar", + "MW": "Malawi", + "MY": "Malaysia", + "MV": "Maldives", + "ML": "Mali", + "MT": "Malta", + "MH": "Marshall Islands", + "MQ": "Martinique", + "MR": "Mauritania", + "MU": "Mauritius", + "YT": "Mayotte", + "MX": "Mexico", + "FM": "Micronesia", + "MD": "Moldova", + "MC": "Monaco", + "MN": "Mongolia", + "ME": "Montenegro", + "MS": "Montserrat", + "MA": "Morocco", + "MZ": "Mozambique", + "MM": "Myanmar (Burma)", + "NA": "Namibia", + "NR": "Nauru", + "NP": "Nepal", + "NL": "Netherlands", + "NC": "New Caledonia", + "NZ": "New Zealand", + "NI": "Nicaragua", + "NE": "Niger", + "NG": "Nigeria", + "NU": "Niue", + "NF": "Norfolk Island", + "KP": "North Korea", + "MP": "Northern Mariana Islands", + "NO": "Norway", + "OM": "Oman", + "PK": "Pakistan", + "PW": "Palau", + "PS": "Palestinian Territories", + "PA": "Panama", + "PG": "Papua New Guinea", + "PY": "Paraguay", + "PE": "Peru", + "PH": "Philippines", + "PN": "Pitcairn Islands", + "PL": "Poland", + "PT": "Portugal", + "PR": "Puerto Rico", + "QA": "Qatar", + "RE": "R\u00e9union", + "RO": "Romania", + "RU": "Russia", + "RW": "Rwanda", + "WS": "Samoa", + "SM": "San Marino", + "ST": "S\u00e3o Tom\u00e9 & Pr\u00edncipe", + "SA": "Saudi Arabia", + "SN": "Senegal", + "RS": "Serbia", + "SC": "Seychelles", + "SL": "Sierra Leone", + "SG": "Singapore", + "SX": "Sint Maarten", + "SK": "Slovakia", + "SI": "Slovenia", + "SB": "Solomon Islands", + "SO": "Somalia", + "ZA": "South Africa", + "GS": "South Georgia & South Sandwich Islands", + "KR": "South Korea", + "SS": "South Sudan", + "ES": "Spain", + "LK": "Sri Lanka", + "BL": "St. Barth\u00e9lemy", + "SH": "St. Helena", + "KN": "St. Kitts & Nevis", + "LC": "St. Lucia", + "MF": "St. Martin", + "PM": "St. Pierre & Miquelon", + "VC": "St. Vincent & Grenadines", + "SD": "Sudan", + "SR": "Suriname", + "SJ": "Svalbard & Jan Mayen", + "SZ": "Swaziland", + "SE": "Sweden", + "CH": "Switzerland", + "SY": "Syria", + "TW": "Taiwan", + "TJ": "Tajikistan", + "TZ": "Tanzania", + "TH": "Thailand", + "TL": "Timor-Leste", + "TG": "Togo", + "TK": "Tokelau", + "TO": "Tonga", + "TT": "Trinidad & Tobago", + "TA": "Tristan da Cunha", + "TN": "Tunisia", + "TR": "Turkey", + "TM": "Turkmenistan", + "TC": "Turks & Caicos Islands", + "TV": "Tuvalu", + "UM": "U.S. Outlying Islands", + "VI": "U.S. Virgin Islands", + "UG": "Uganda", + "UA": "Ukraine", + "AE": "United Arab Emirates", + "GB": "United Kingdom", + "US": "United States", + "UY": "Uruguay", + "UZ": "Uzbekistan", + "VU": "Vanuatu", + "VA": "Vatican City", + "VE": "Venezuela", + "VN": "Vietnam", + "WF": "Wallis & Futuna", + "EH": "Western Sahara", + "YE": "Yemen", + "ZM": "Zambia", + "ZW": "Zimbabwe" +}; \ No newline at end of file diff --git a/lib/locales/es-ES/address/index.js b/lib/locales/es-ES/address/index.js new file mode 100644 index 00000000..95c50b6c --- /dev/null +++ b/lib/locales/es-ES/address/index.js @@ -0,0 +1,78 @@ +import countries from "./countryWithCodes"; + +module.exports = { + countryAndCode() { + let country = this.random.objectElement(countries); + return { + code: Object.keys(country)[0], + name: country[Object.keys(country)[0]] + }; + }, + + state: [ + "Andalucía", + "Aragón", + "Principado de Asturias", + "Baleares", + "Canarias", + "Cantabria", + "Castilla-La Mancha", + "Castilla y León", + "Cataluña", + "Comunidad Valenciana", + "Extremadura", + "Galicia", + "La Rioja", + "Comunidad de Madrid", + "Navarra", + "País Vasco", + "Región de Murcia" + ], + stateAbbr: [ + "And", + "Ara", + "Ast", + "Bal", + "Can", + "Cbr", + "Man", + "Leo", + "Cat", + "Com", + "Ext", + "Gal", + "Rio", + "Mad", + "Nav", + "Vas", + "Mur" + ], + + city: require("./cityName"), + + street: [ + "#{address.streetName}#{address.buildingNumber}", + "#{address.streetName}#{address.buildingNumber} Esc. ###", + "#{address.streetName}#{address.buildingNumber} Puerta ###" + ], + + streetName: [ + "#{address.streetSuffix} #{names.firstName}", + "#{address.streetSuffix} #{names.firstName} #{names.lastName}" + ], + + streetSuffix: require("./streetSuffix"), + + buildingNumber: [ + " s/n.", + ", #", + ", ##", + " #", + " ##" + ], + + postCode: [ + "#####" + ] + +}; \ No newline at end of file diff --git a/lib/locales/es-ES/address/streetSuffix.js b/lib/locales/es-ES/address/streetSuffix.js new file mode 100644 index 00000000..b1246983 --- /dev/null +++ b/lib/locales/es-ES/address/streetSuffix.js @@ -0,0 +1,72 @@ +module.exports = [ + "Aldea", + "Apartamento", + "Arrabal", + "Arroyo", + "Avenida", + "Bajada", + "Barranco", + "Barrio", + "Bloque", + "Calle", + "Calleja", + "Camino", + "Carretera", + "Caserio", + "Colegio", + "Colonia", + "Conjunto", + "Cuesta", + "Chalet", + "Edificio", + "Entrada", + "Escalinata", + "Explanada", + "Extramuros", + "Extrarradio", + "Ferrocarril", + "Glorieta", + "Gran Subida", + "Grupo", + "Huerta", + "Jardines", + "Lado", + "Lugar", + "Manzana", + "Masía", + "Mercado", + "Monte", + "Muelle", + "Municipio", + "Parcela", + "Parque", + "Partida", + "Pasaje", + "Paseo", + "Plaza", + "Poblado", + "Polígono", + "Prolongación", + "Puente", + "Puerta", + "Quinta", + "Ramal", + "Rambla", + "Rampa", + "Riera", + "Rincón", + "Ronda", + "Rua", + "Salida", + "Sector", + "Sección", + "Senda", + "Solar", + "Subida", + "Terrenos", + "Torrente", + "Travesía", + "Urbanización", + "Vía", + "Vía Pública" +]; diff --git a/lib/locales/es-ES/company/index.js b/lib/locales/es-ES/company/index.js new file mode 100644 index 00000000..98d4fc3f --- /dev/null +++ b/lib/locales/es-ES/company/index.js @@ -0,0 +1,15 @@ +module.exports = { + name: [ + "#{names.lastName} #{company.suffix}", + "#{names.lastName} y #{names.lastName}", + "#{names.lastName} #{names.lastName} #{company.suffix}", + "#{names.lastName}, #{names.lastName} y #{names.lastName} Asociados" + ], + + suffix: [ + "S.L.", + "e Hijos", + "S.A.", + "Hermanos" + ] +}; \ No newline at end of file diff --git a/lib/locales/es-ES/index.js b/lib/locales/es-ES/index.js new file mode 100644 index 00000000..4c563d21 --- /dev/null +++ b/lib/locales/es-ES/index.js @@ -0,0 +1,15 @@ +module.exports = { + _meta: { + id: "es-ES", + fallback: null, + language: "Spanish", + country: "Spain", + countryCode: "ES" + }, + + names: require("./names"), + phone: require("./phone"), + address: require("./address"), + company: require("./company"), + internet: require("./internet") +}; \ No newline at end of file diff --git a/lib/locales/es-ES/internet/index.js b/lib/locales/es-ES/internet/index.js new file mode 100644 index 00000000..fb7ff8e6 --- /dev/null +++ b/lib/locales/es-ES/internet/index.js @@ -0,0 +1,10 @@ +module.exports = { + tld: [ + "com", + "es", + "info", + "com.es", + "org" + ] + +}; \ No newline at end of file diff --git a/lib/locales/es-ES/names/firstName.js b/lib/locales/es-ES/names/firstName.js new file mode 100644 index 00000000..581c72f7 --- /dev/null +++ b/lib/locales/es-ES/names/firstName.js @@ -0,0 +1,214 @@ +module.exports = [ + "Adán", + "Agustín", + "Alberto", + "Alejandro", + "Alfonso", + "Alfredo", + "Andrés", + "Antonio", + "Armando", + "Arturo", + "Benito", + "Benjamín", + "Bernardo", + "Carlos", + "César", + "Claudio", + "Clemente", + "Cristian", + "Cristobal", + "Daniel", + "David", + "Diego", + "Eduardo", + "Emilio", + "Enrique", + "Ernesto", + "Esteban", + "Federico", + "Felipe", + "Fernando", + "Francisco", + "Gabriel", + "Gerardo", + "Germán", + "Gilberto", + "Gonzalo", + "Gregorio", + "Guillermo", + "Gustavo", + "Hernán", + "Homero", + "Horacio", + "Hugo", + "Ignacio", + "Jacobo", + "Jaime", + "Javier", + "Jerónimo", + "Jesús", + "Joaquín", + "Jorge", + "Jorge Luis", + "José", + "José Eduardo", + "José Emilio", + "José Luis", + "José María", + "Juan", + "Juan Carlos", + "Julio", + "Julio César", + "Lorenzo", + "Lucas", + "Luis", + "Luis Miguel", + "Manuel", + "Marco Antonio", + "Marcos", + "Mariano", + "Mario", + "Martín", + "Mateo", + "Miguel", + "Miguel Ángel", + "Nicolás", + "Octavio", + "Óscar", + "Pablo", + "Patricio", + "Pedro", + "Rafael", + "Ramiro", + "Ramón", + "Raúl", + "Ricardo", + "Roberto", + "Rodrigo", + "Rubén", + "Salvador", + "Samuel", + "Sancho", + "Santiago", + "Sergio", + "Teodoro", + "Timoteo", + "Tomás", + "Vicente", + "Víctor", + "Adela", + "Adriana", + "Alejandra", + "Alicia", + "Amalia", + "Ana", + "Ana Luisa", + "Ana María", + "Andrea", + "Anita", + "Ángela", + "Antonia", + "Ariadna", + "Barbara", + "Beatriz", + "Berta", + "Blanca", + "Caridad", + "Carla", + "Carlota", + "Carmen", + "Carolina", + "Catalina", + "Cecilia", + "Clara", + "Claudia", + "Concepción", + "Conchita", + "Cristina", + "Daniela", + "Débora", + "Diana", + "Dolores", + "Lola", + "Dorotea", + "Elena", + "Elisa", + "Eloisa", + "Elsa", + "Elvira", + "Emilia", + "Esperanza", + "Estela", + "Ester", + "Eva", + "Florencia", + "Francisca", + "Gabriela", + "Gloria", + "Graciela", + "Guadalupe", + "Guillermina", + "Inés", + "Irene", + "Isabel", + "Isabela", + "Josefina", + "Juana", + "Julia", + "Laura", + "Leonor", + "Leticia", + "Lilia", + "Lorena", + "Lourdes", + "Lucia", + "Luisa", + "Luz", + "Magdalena", + "Manuela", + "Marcela", + "Margarita", + "María", + "María del Carmen", + "María Cristina", + "María Elena", + "María Eugenia", + "María José", + "María Luisa", + "María Soledad", + "María Teresa", + "Mariana", + "Maricarmen", + "Marilu", + "Marisol", + "Marta", + "Mayte", + "Mercedes", + "Micaela", + "Mónica", + "Natalia", + "Norma", + "Olivia", + "Patricia", + "Pilar", + "Ramona", + "Raquel", + "Rebeca", + "Reina", + "Rocio", + "Rosa", + "Rosalia", + "Rosario", + "Sara", + "Silvia", + "Sofia", + "Soledad", + "Sonia", + "Susana", + "Teresa", + "Verónica", + "Victoria", + "Virginia", + "Yolanda" +]; diff --git a/lib/locales/es-ES/names/index.js b/lib/locales/es-ES/names/index.js new file mode 100644 index 00000000..41b1578c --- /dev/null +++ b/lib/locales/es-ES/names/index.js @@ -0,0 +1,33 @@ +module.exports = { + // Male first name + firstNameM: require("./firstName"), + + // Femail first name + firstNameF: require("./firstName"), + + // Male last name + lastNameM: require("./lastName"), + + // Female last name + lastNameF: require("./lastName"), + + prefix: [ + "Sr.", + "Sra.", + "Sta." + ], + + suffix: [], + + name: [ + "#{names.prefix} #{names.firstName} #{names.lastName} #{names.lastName}", + "#{names.firstName} #{names.lastName} #{names.lastName}", + "#{names.firstName} #{names.lastName} #{names.lastName}", + "#{names.firstName} #{names.lastName} #{names.lastName}", + "#{names.firstName} #{names.lastName} #{names.lastName}" + ], + + nameM: module.exports.name, + nameF: module.exports.name + +}; \ No newline at end of file diff --git a/lib/locales/es-ES/names/lastName.js b/lib/locales/es-ES/names/lastName.js new file mode 100644 index 00000000..882f7e5a --- /dev/null +++ b/lib/locales/es-ES/names/lastName.js @@ -0,0 +1,640 @@ +module.exports = [ + "Abeyta", + "Abrego", + "Abreu", + "Acevedo", + "Acosta", + "Acuña", + "Adame", + "Adorno", + "Agosto", + "Aguayo", + "Águilar", + "Aguilera", + "Aguirre", + "Alanis", + "Alaniz", + "Alarcón", + "Alba", + "Alcala", + "Alcántar", + "Alcaraz", + "Alejandro", + "Alemán", + "Alfaro", + "Alicea", + "Almanza", + "Almaraz", + "Almonte", + "Alonso", + "Alonzo", + "Altamirano", + "Alva", + "Alvarado", + "Alvarez", + "Amador", + "Amaya", + "Anaya", + "Anguiano", + "Angulo", + "Aparicio", + "Apodaca", + "Aponte", + "Aragón", + "Araña", + "Aranda", + "Arce", + "Archuleta", + "Arellano", + "Arenas", + "Arevalo", + "Arguello", + "Arias", + "Armas", + "Armendáriz", + "Armenta", + "Armijo", + "Arredondo", + "Arreola", + "Arriaga", + "Arroyo", + "Arteaga", + "Atencio", + "Ávalos", + "Ávila", + "Avilés", + "Ayala", + "Baca", + "Badillo", + "Báez", + "Baeza", + "Bahena", + "Balderas", + "Ballesteros", + "Banda", + "Bañuelos", + "Barajas", + "Barela", + "Barragán", + "Barraza", + "Barrera", + "Barreto", + "Barrientos", + "Barrios", + "Batista", + "Becerra", + "Beltrán", + "Benavides", + "Benavídez", + "Benítez", + "Bermúdez", + "Bernal", + "Berríos", + "Bétancourt", + "Blanco", + "Bonilla", + "Borrego", + "Botello", + "Bravo", + "Briones", + "Briseño", + "Brito", + "Bueno", + "Burgos", + "Bustamante", + "Bustos", + "Caballero", + "Cabán", + "Cabrera", + "Cadena", + "Caldera", + "Calderón", + "Calvillo", + "Camacho", + "Camarillo", + "Campos", + "Canales", + "Candelaria", + "Cano", + "Cantú", + "Caraballo", + "Carbajal", + "Cardenas", + "Cardona", + "Carmona", + "Carranza", + "Carrasco", + "Carrasquillo", + "Carreón", + "Carrera", + "Carrero", + "Carrillo", + "Carrion", + "Carvajal", + "Casanova", + "Casares", + "Casárez", + "Casas", + "Casillas", + "Castañeda", + "Castellanos", + "Castillo", + "Castro", + "Cavazos", + "Cazares", + "Ceballos", + "Cedillo", + "Ceja", + "Centeno", + "Cepeda", + "Cerda", + "Cervantes", + "Cervántez", + "Chacón", + "Chapa", + "Chavarría", + "Chávez", + "Cintrón", + "Cisneros", + "Collado", + "Collazo", + "Colón", + "Colunga", + "Concepción", + "Contreras", + "Cordero", + "Córdova", + "Cornejo", + "Corona", + "Coronado", + "Corral", + "Corrales", + "Correa", + "Cortés", + "Cortez", + "Cotto", + "Covarrubias", + "Crespo", + "Cruz", + "Cuellar", + "Curiel", + "Dávila", + "de Anda", + "de Jesús", + "Delacrúz", + "Delafuente", + "Delagarza", + "Delao", + "Delapaz", + "Delarosa", + "Delatorre", + "Deleón", + "Delgadillo", + "Delgado", + "Delrío", + "Delvalle", + "Díaz", + "Domínguez", + "Domínquez", + "Duarte", + "Dueñas", + "Duran", + "Echevarría", + "Elizondo", + "Enríquez", + "Escalante", + "Escamilla", + "Escobar", + "Escobedo", + "Esparza", + "Espinal", + "Espino", + "Espinosa", + "Espinoza", + "Esquibel", + "Esquivel", + "Estévez", + "Estrada", + "Fajardo", + "Farías", + "Feliciano", + "Fernández", + "Ferrer", + "Fierro", + "Figueroa", + "Flores", + "Flórez", + "Fonseca", + "Franco", + "Frías", + "Fuentes", + "Gaitán", + "Galarza", + "Galindo", + "Gallardo", + "Gallegos", + "Galván", + "Gálvez", + "Gamboa", + "Gamez", + "Gaona", + "Garay", + "García", + "Garibay", + "Garica", + "Garrido", + "Garza", + "Gastélum", + "Gaytán", + "Gil", + "Girón", + "Godínez", + "Godoy", + "Gómez", + "Gonzales", + "González", + "Gollum", + "Gracia", + "Granado", + "Granados", + "Griego", + "Grijalva", + "Guajardo", + "Guardado", + "Guerra", + "Guerrero", + "Guevara", + "Guillen", + "Gurule", + "Gutiérrez", + "Guzmán", + "Haro", + "Henríquez", + "Heredia", + "Hernádez", + "Hernandes", + "Hernández", + "Herrera", + "Hidalgo", + "Hinojosa", + "Holguín", + "Huerta", + "Hurtado", + "Ibarra", + "Iglesias", + "Irizarry", + "Jaime", + "Jaimes", + "Jáquez", + "Jaramillo", + "Jasso", + "Jiménez", + "Jimínez", + "Juárez", + "Jurado", + "Laboy", + "Lara", + "Laureano", + "Leal", + "Lebrón", + "Ledesma", + "Leiva", + "Lemus", + "León", + "Lerma", + "Leyva", + "Limón", + "Linares", + "Lira", + "Llamas", + "Loera", + "Lomeli", + "Longoria", + "López", + "Lovato", + "Loya", + "Lozada", + "Lozano", + "Lucero", + "Lucio", + "Luevano", + "Lugo", + "Luna", + "Macías", + "Madera", + "Madrid", + "Madrigal", + "Maestas", + "Magaña", + "Malave", + "Maldonado", + "Manzanares", + "Mares", + "Marín", + "Márquez", + "Marrero", + "Marroquín", + "Martínez", + "Mascareñas", + "Mata", + "Mateo", + "Matías", + "Matos", + "Maya", + "Mayorga", + "Medina", + "Medrano", + "Mejía", + "Meléndez", + "Melgar", + "Mena", + "Menchaca", + "Méndez", + "Mendoza", + "Menéndez", + "Meraz", + "Mercado", + "Merino", + "Mesa", + "Meza", + "Miramontes", + "Miranda", + "Mireles", + "Mojica", + "Molina", + "Mondragón", + "Monroy", + "Montalvo", + "Montañez", + "Montaño", + "Montemayor", + "Montenegro", + "Montero", + "Montes", + "Montez", + "Montoya", + "Mora", + "Morales", + "Moreno", + "Mota", + "Moya", + "Munguía", + "Muñiz", + "Muñoz", + "Murillo", + "Muro", + "Nájera", + "Naranjo", + "Narváez", + "Nava", + "Navarrete", + "Navarro", + "Nazario", + "Negrete", + "Negrón", + "Nevárez", + "Nieto", + "Nieves", + "Niño", + "Noriega", + "Núñez", + "Ocampo", + "Ocasio", + "Ochoa", + "Ojeda", + "Olivares", + "Olivárez", + "Olivas", + "Olivera", + "Olivo", + "Olmos", + "Olvera", + "Ontiveros", + "Oquendo", + "Ordóñez", + "Orellana", + "Ornelas", + "Orosco", + "Orozco", + "Orta", + "Ortega", + "Ortiz", + "Osorio", + "Otero", + "Ozuna", + "Pabón", + "Pacheco", + "Padilla", + "Padrón", + "Páez", + "Pagan", + "Palacios", + "Palomino", + "Palomo", + "Pantoja", + "Paredes", + "Parra", + "Partida", + "Patiño", + "Paz", + "Pedraza", + "Pedroza", + "Pelayo", + "Peña", + "Perales", + "Peralta", + "Perea", + "Peres", + "Pérez", + "Pichardo", + "Piña", + "Pineda", + "Pizarro", + "Polanco", + "Ponce", + "Porras", + "Portillo", + "Posada", + "Prado", + "Preciado", + "Prieto", + "Puente", + "Puga", + "Pulido", + "Quesada", + "Quezada", + "Quiñones", + "Quiñónez", + "Quintana", + "Quintanilla", + "Quintero", + "Quiroz", + "Rael", + "Ramírez", + "Ramón", + "Ramos", + "Rangel", + "Rascón", + "Raya", + "Razo", + "Regalado", + "Rendón", + "Rentería", + "Reséndez", + "Reyes", + "Reyna", + "Reynoso", + "Rico", + "Rincón", + "Riojas", + "Ríos", + "Rivas", + "Rivera", + "Rivero", + "Robledo", + "Robles", + "Rocha", + "Rodarte", + "Rodrígez", + "Rodríguez", + "Rodríquez", + "Rojas", + "Rojo", + "Roldán", + "Rolón", + "Romero", + "Romo", + "Roque", + "Rosado", + "Rosales", + "Rosario", + "Rosas", + "Roybal", + "Rubio", + "Ruelas", + "Ruiz", + "Saavedra", + "Sáenz", + "Saiz", + "Salas", + "Salazar", + "Salcedo", + "Salcido", + "Saldaña", + "Saldivar", + "Salgado", + "Salinas", + "Samaniego", + "Sanabria", + "Sanches", + "Sánchez", + "Sandoval", + "Santacruz", + "Santana", + "Santiago", + "Santillán", + "Sarabia", + "Sauceda", + "Saucedo", + "Sedillo", + "Segovia", + "Segura", + "Sepúlveda", + "Serna", + "Serrano", + "Serrato", + "Sevilla", + "Sierra", + "Sisneros", + "Solano", + "Solís", + "Soliz", + "Solorio", + "Solorzano", + "Soria", + "Sosa", + "Sotelo", + "Soto", + "Suárez", + "Tafoya", + "Tamayo", + "Tamez", + "Tapia", + "Tejada", + "Tejeda", + "Téllez", + "Tello", + "Terán", + "Terrazas", + "Tijerina", + "Tirado", + "Toledo", + "Toro", + "Torres", + "Tórrez", + "Tovar", + "Trejo", + "Treviño", + "Trujillo", + "Ulibarri", + "Ulloa", + "Urbina", + "Ureña", + "Urías", + "Uribe", + "Urrutia", + "Vaca", + "Valadez", + "Valdés", + "Valdez", + "Valdivia", + "Valencia", + "Valentín", + "Valenzuela", + "Valladares", + "Valle", + "Vallejo", + "Valles", + "Valverde", + "Vanegas", + "Varela", + "Vargas", + "Vásquez", + "Vázquez", + "Vega", + "Vela", + "Velasco", + "Velásquez", + "Velázquez", + "Vélez", + "Véliz", + "Venegas", + "Vera", + "Verdugo", + "Verduzco", + "Vergara", + "Viera", + "Vigil", + "Villa", + "Villagómez", + "Villalobos", + "Villalpando", + "Villanueva", + "Villareal", + "Villarreal", + "Villaseñor", + "Villegas", + "Yáñez", + "Ybarra", + "Zambrano", + "Zamora", + "Zamudio", + "Zapata", + "Zaragoza", + "Zarate", + "Zavala", + "Zayas", + "Zelaya", + "Zepeda", + "Zúñiga" +]; diff --git a/lib/locales/es-ES/phone/index.js b/lib/locales/es-ES/phone/index.js new file mode 100644 index 00000000..e0322665 --- /dev/null +++ b/lib/locales/es-ES/phone/index.js @@ -0,0 +1,8 @@ +module.exports = { + number: [ + "9##-###-###", + "9##.###.###", + "9## ### ###", + "9########" + ] +}; \ No newline at end of file diff --git a/test/specs/locales/es-ES/index.spec.js b/test/specs/locales/es-ES/index.spec.js new file mode 100644 index 00000000..64fa071d --- /dev/null +++ b/test/specs/locales/es-ES/index.spec.js @@ -0,0 +1,85 @@ +import { expect } from "chai"; + +import Fakerator from "lib/fakerator"; + +describe("Locale es-ES", () => { + + let fakerator; + + beforeEach( () => { + fakerator = new Fakerator("es-ES"); + fakerator.seed(5050); + }); + + it("check locale definitions", () => { + expect(fakerator.locale.names).to.be.an("Object"); + expect(fakerator.locale.names.firstNameM).to.be.length(212); + + expect(fakerator.locale.phone).to.be.an("Object"); + expect(fakerator.locale.address).to.be.an("Object"); + expect(fakerator.locale.company).to.be.an("Object"); + expect(fakerator.locale.internet).to.be.an("Object"); + }); + + it("check names definitions", () => { + expect(fakerator.names.firstName()).to.be.equal("Elsa"); + expect(fakerator.names.lastName()).to.be.equal("Paredes"); + expect(fakerator.names.name()).to.be.equal("Teodoro Cornejo Segovia"); + }); + + it("check company definitions", () => { + expect(fakerator.company.name()).to.be.equal("Torres S.A."); + }); + + it("check phone definitions", () => { + expect(fakerator.phone.number()).to.be.equal("968-634-492"); + }); + + it("check address definitions", () => { + expect(fakerator.address.city()).to.be.equal("Parla"); + expect(fakerator.address.street()).to.be.equal("Prolongación Roberto Valdivia, 6 Esc. 812"); + expect(fakerator.address.streetName()).to.be.equal("Prolongación Adán"); + expect(fakerator.address.buildingNumber()).to.be.equal(" 4"); + expect(fakerator.address.postCode()).to.be.equal("69912"); + expect(fakerator.address.state()).to.be.equal("Aragón"); + }); + + it("check internet definitions", () => { + expect(fakerator.internet.userName()).to.be.equal("elsa.paredes4492"); + expect(fakerator.internet.domain()).to.be.equal("ernestocadena.info"); + expect(fakerator.internet.emailDomain()).to.be.equal("hotmail.com"); + expect(fakerator.internet.email()).to.be.equal("gloria91@yahoo.com"); + }); + + it("check entity.user", () => { + let user = fakerator.entity.user(); + expect(user).to.be.an("Object"); + //console.log(user); + + expect(user).to.have.property("firstName").an("String"); + expect(user).to.have.property("lastName").an("String"); + expect(user).to.have.property("userName").an("String"); + expect(user).to.have.property("password").an("String"); + expect(user).to.have.property("email").an("String"); + expect(user).to.have.property("phone").an("String"); + expect(user).to.have.property("dob").an("Date"); + expect(user).to.have.property("website").an("String"); + expect(user).to.have.property("ip").an("String"); + expect(user).to.have.property("avatar").an("String"); + expect(user).to.have.property("gravatar").an("String"); + expect(user).to.have.property("status").an("Boolean"); + expect(user).to.have.property("address").an("Object"); + + expect(user.address).to.have.property("country").an("String"); + expect(user.address).to.have.property("countryCode").an("String").length(2); + expect(user.address).to.have.property("state").an("String"); + expect(user.address).to.have.property("city").an("String"); + expect(user.address).to.have.property("street").an("String"); + expect(user.address).to.have.property("zip").an("String"); + expect(user.address).to.have.property("geo").an("Object"); + expect(user.address.geo).to.have.property("latitude").an("Number"); + expect(user.address.geo).to.have.property("longitude").an("Number"); + + }); + +}) \ No newline at end of file