Skip to content

Commit

Permalink
⭐ new: add spanish locale
Browse files Browse the repository at this point in the history
  • Loading branch information
icebob committed May 27, 2016
1 parent dce3063 commit d45edac
Show file tree
Hide file tree
Showing 13 changed files with 1,558 additions and 36 deletions.
36 changes: 0 additions & 36 deletions lib/locales/de-DE/internet/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
];
}

};
131 changes: 131 additions & 0 deletions lib/locales/es-ES/address/cityName.js
Original file line number Diff line number Diff line change
@@ -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"
];
Loading

0 comments on commit d45edac

Please sign in to comment.