Skip to content

Commit

Permalink
Add locale pt_PT
Browse files Browse the repository at this point in the history
  • Loading branch information
titonobre committed Oct 14, 2018
1 parent c852cdf commit 07437ff
Show file tree
Hide file tree
Showing 35 changed files with 1,046 additions and 1 deletion.
1 change: 1 addition & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ faker.locale = "de";
* nl
* pl
* pt_BR
* pt_PT
* ru
* sk
* sv
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function Faker (opts) {
self.git = bindAll(new Git(self));

var _definitions = {
"name": ["first_name", "last_name", "prefix", "suffix", "gender", "title", "male_first_name", "female_first_name", "male_middle_name", "female_middle_name", "male_last_name", "female_last_name"],
"name": ["first_name", "last_name", "prefix", "suffix", "gender", "title", "male_prefix", "female_prefix", "male_first_name", "female_first_name", "male_middle_name", "female_middle_name", "male_last_name", "female_last_name"],
"address": ["city_prefix", "city_suffix", "street_suffix", "county", "country", "country_code", "state", "state_abbr", "street_prefix", "postcode", "postcode_by_state", "direction", "direction_abbr"],
"company": ["adjective", "noun", "descriptor", "bs_adjective", "bs_noun", "bs_verb", "suffix"],
"lorem": ["words"],
Expand Down
1 change: 1 addition & 0 deletions lib/locales.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ exports['nl_BE'] = require('./locales/nl_BE');
exports['nl'] = require('./locales/nl');
exports['pl'] = require('./locales/pl');
exports['pt_BR'] = require('./locales/pt_BR');
exports['pt_PT'] = require('./locales/pt_PT');
exports['ro'] = require('./locales/ro');
exports['ru'] = require('./locales/ru');
exports['sk'] = require('./locales/sk');
Expand Down
6 changes: 6 additions & 0 deletions lib/locales/pt_PT/address/building_number.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module["exports"] = [
"####",
"###",
"##",
"#"
];
240 changes: 240 additions & 0 deletions lib/locales/pt_PT/address/country.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,240 @@
module["exports"] = [
"África do Sul",
"Áustria",
"Índia",
"Afeganistão",
"Albânia",
"Alemanha",
"Andorra",
"Angola",
"Anguila",
"Antárctida",
"Antígua e Barbuda",
"Antilhas Neerlandesas",
"Arábia Saudita",
"Argélia",
"Argentina",
"Arménia",
"Aruba",
"Austrália",
"Azerbaijão",
"Bélgica",
"Bósnia e Herzegovina",
"Baamas",
"Bangladeche",
"Barém",
"Barbados",
"Belize",
"Benim",
"Bermudas",
"Bielorrússia",
"Birmânia",
"Bolívia",
"Botsuana",
"Brasil",
"Brunei",
"Bulgária",
"Burúndi",
"Burquina Faso",
"Butão",
"Cabo Verde",
"Camarões",
"Camboja",
"Canadá",
"Catar",
"Cazaquistão",
"Chade",
"Chile",
"China",
"Chipre",
"Colômbia",
"Comores",
"Congo-Brazzaville",
"Congo-Kinshasa",
"Coreia do Norte",
"Coreia do Sul",
"Costa Rica",
"Costa do Marfim",
"Croácia",
"Cuba",
"Dinamarca",
"Domínica",
"Egipto",
"Emiratos Árabes Unidos",
"Equador",
"Eritreia",
"Eslováquia",
"Eslovénia",
"Espanha",
"Estónia",
"Estados Unidos",
"Etiópia",
"Faroé",
"Fiji",
"Filipinas",
"Finlândia",
"França",
"Gâmbia",
"Gabão",
"Gana",
"Geórgia",
"Geórgia do Sul e Sandwich do Sul",
"Gibraltar",
"Grécia",
"Granada",
"Gronelândia",
"Guadalupe",
"Guame",
"Guatemala",
"Guiana",
"Guiana Francesa",
"Guiné",
"Guiné Equatorial",
"Guiné-Bissau",
"Haiti",
"Honduras",
"Hong Kong",
"Hungria",
"Iémen",
"Ilha Bouvet",
"Ilha Norfolk",
"Ilha do Natal",
"Ilhas Caimão",
"Ilhas Cook",
"Ilhas Falkland",
"Ilhas Heard e McDonald",
"Ilhas Marshall",
"Ilhas Menores Distantes dos Estados Unidos",
"Ilhas Salomão",
"Ilhas Turcas e Caicos",
"Ilhas Virgens Americanas",
"Ilhas Virgens Britânicas",
"Ilhas dos Cocos",
"Indonésia",
"Irão",
"Iraque",
"Irlanda",
"Islândia",
"Israel",
"Itália",
"Jamaica",
"Japão",
"Jibuti",
"Jordânia",
"Jugoslávia",
"Kuwait",
"Líbano",
"Líbia",
"Laos",
"Lesoto",
"Letónia",
"Libéria",
"Listenstaine",
"Lituânia",
"Luxemburgo",
"México",
"Mónaco",
"Macau",
"Macedónia",
"Madagáscar",
"Malásia",
"Malávi",
"Maldivas",
"Mali",
"Malta",
"Marianas do Norte",
"Marrocos",
"Martinica",
"Maurícia",
"Mauritânia",
"Mayotte",
"Micronésia",
"Moçambique",
"Moldávia",
"Mongólia",
"Monserrate",
"Níger",
"Namíbia",
"Nauru",
"Nepal",
"Nicarágua",
"Nigéria",
"Niue",
"Noruega",
"Nova Caledónia",
"Nova Zelândia",
"Omã",
"Países Baixos",
"Palau",
"Panamá",
"Papua-Nova Guiné",
"Paquistão",
"Paraguai",
"Peru",
"Pitcairn",
"Polónia",
"Polinésia Francesa",
"Porto Rico",
"Portugal",
"Quénia",
"Quirguizistão",
"Quiribáti",
"Rússia",
"Reino Unido",
"República Centro-Africana",
"República Checa",
"República Dominicana",
"Reunião",
"Roménia",
"Ruanda",
"São Cristóvão e Neves",
"São Marinho",
"São Pedro e Miquelon",
"São Tomé e Príncipe",
"São Vicente e Granadinas",
"Síria",
"Salvador",
"Samoa",
"Samoa Americana",
"Santa Helena",
"Santa Lúcia",
"Sara Ocidental",
"Seicheles",
"Senegal",
"Serra Leoa",
"Singapura",
"Somália",
"Sri Lanca",
"Suécia",
"Suíça",
"Suazilândia",
"Sudão",
"Suriname",
"Svalbard e Jan Mayen",
"Tailândia",
"Taiwan",
"Tajiquistão",
"Tanzânia",
"Território Britânico do Oceano Índico",
"Territórios Austrais Franceses",
"Timor Leste",
"Togo",
"Tokelau",
"Tonga",
"Trindade e Tobago",
"Tunísia",
"Turquemenistão",
"Turquia",
"Tuvalu",
"Ucrânia",
"Uganda",
"Uruguai",
"Usbequistão",
"Vanuatu",
"Vaticano",
"Venezuela",
"Vietname",
"Wallis e Futuna",
"Zâmbia",
"Zimbabué"
];
3 changes: 3 additions & 0 deletions lib/locales/pt_PT/address/default_country.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module["exports"] = [
"Portugal"
];
10 changes: 10 additions & 0 deletions lib/locales/pt_PT/address/direction.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module["exports"] = [
"Norte",
"Este",
"Sul",
"Oeste",
"Nordeste",
"Noroeste",
"Sudeste",
"Sodoeste"
];
10 changes: 10 additions & 0 deletions lib/locales/pt_PT/address/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
var address = {};
module['exports'] = address;
address.country = require("./country");
address.street_name = require("./street_name");
address.building_number = require("./building_number");
address.street_prefix = require("./street_prefix");
address.postcode = require("./postcode");
address.direction = require("./direction");
address.street_address = require("./street_address");
address.default_country = require("./default_country");
3 changes: 3 additions & 0 deletions lib/locales/pt_PT/address/postcode.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module["exports"] = [
"####-###"
];
3 changes: 3 additions & 0 deletions lib/locales/pt_PT/address/street_address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module["exports"] = [
"#{street_name} #{building_number}"
];
7 changes: 7 additions & 0 deletions lib/locales/pt_PT/address/street_name.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module["exports"] = [
"#{street_prefix} #{Name.first_name} #{Name.last_name}",
"N#",
"N##",
"N###",
"N###-#"
];
22 changes: 22 additions & 0 deletions lib/locales/pt_PT/address/street_prefix.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
module["exports"] = [
"Acesso",
"Alameda",
"Avenida",
"Azinhaga",
"Bairro",
"Beco",
"Calçada",
"Caminho",
"Escadas",
"Estrada",
"Jardim",
"Ladeira",
"Largo",
"Praça",
"Praceta",
"Quinta",
"Rua",
"Travessa",
"Urbanização",
"Viela"
];
29 changes: 29 additions & 0 deletions lib/locales/pt_PT/commerce/color.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
module["exports"] = [
"vermelho",
"verde",
"azul",
"amarelo",
"roxo",
"branco",
"preto",
"laranja",
"rosa",
"cinzento",
"castanho",
"violeta",
"turquesa",
"bronzeado",
"salmão",
"ameixa",
"orquídea",
"magenta",
"lima",
"marfim",
"índigo",
"ouro",
"fúcsia",
"ciano",
"azure",
"lavanda",
"prata"
];
24 changes: 24 additions & 0 deletions lib/locales/pt_PT/commerce/department.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module["exports"] = [
"Livros",
"Filmes",
"Música",
"Jogos",
"Electrónica",
"Computadores",
"Casa",
"Jardim",
"Ferramentas",
"Mercearia",
"Saúde",
"Beleza",
"Brinquedos",
"Crianças",
"Bebé",
"Roupas",
"Sapatos",
"Jóias",
"Desporto",
"Ar Livre",
"Automóveis",
"Industrial"
];
5 changes: 5 additions & 0 deletions lib/locales/pt_PT/commerce/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
var commerce = {};
module['exports'] = commerce;
commerce.color = require("./color");
commerce.department = require("./department");
commerce.product_name = require("./product_name");
Loading

0 comments on commit 07437ff

Please sign in to comment.