Skip to content

Commit

Permalink
Add es_CO localized providers (#1562)
Browse files Browse the repository at this point in the history
* Create `es` `person` provider to reuse `language_names`

* Add person provider for es_CO.

* Add address provider for es_CO.

* Add automotive provider for es_CO.

* Add ssn provider for es_CO.

* Add phone_number provider for es_CO.

* Organize imports and fix some comments.

* Correct spelling mistake in a female name.

* Remove python 2 unicode string literals from docstrings.

* Format with black.

* Fix errors detected by mypy.
  • Loading branch information
healarconr committed Nov 2, 2021
1 parent b2f1878 commit eb088b8
Show file tree
Hide file tree
Showing 13 changed files with 2,838 additions and 190 deletions.
1,335 changes: 1,335 additions & 0 deletions faker/providers/address/es_CO/__init__.py

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions faker/providers/automotive/es_CO/__init__.py
@@ -0,0 +1,17 @@
from collections import OrderedDict

from .. import Provider as AutomotiveProvider


class Provider(AutomotiveProvider):

license_formats = OrderedDict(
[
("???###", 0.6),
("???##?", 0.3),
("T####", 0.03),
("??####", 0.01),
("R#####", 0.03),
("S#####", 0.03),
]
)
187 changes: 187 additions & 0 deletions faker/providers/person/es/__init__.py
@@ -0,0 +1,187 @@
from .. import Provider as PersonProvider


class Provider(PersonProvider):

# https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
language_names = [
"Afar",
"Abjasio",
"Avéstico",
"Africaans",
"Akánico",
"Amhárico",
"Aragonés",
"Arábico",
"Asamés",
"Avar",
"Aimara",
"Azerí",
"Baskir",
"Bielorruso",
"Búlgaro",
"lenguas Bihari",
"Bislama",
"Bambara",
"Bengalí",
"Tibetano",
"Bretón",
"Bosnio",
"Catalán",
"Checheno",
"Chamorro",
"Corso",
"Cree",
"Checo",
"Eslavo eclesiástico",
"Chuvasio",
"Galés",
"Danés",
"Alemán",
"Maldivo",
"Dzongkha",
"Ewé",
"Griego",
"Inglés",
"Esperanto",
"Español",
"Estonio",
"Vasco",
"Persa",
"Fula",
"Finés",
"Fiyiano",
"Feroés",
"Francés",
"lenguas Frisonas",
"Irlandés",
"Gaélico",
"Gallego",
"Guaraní",
"Gujarati",
"Manés",
"Hausa",
"Hebreo",
"Hindú",
"Hiri Motu",
"Croata",
"Haitiano",
"Húngaro",
"Armenio",
"Herero",
"Interlingua",
"Indonés",
"Igbo",
"Nuosu",
"lenguas esquimales",
"Ido",
"Islandés",
"Italiano",
"Inuit",
"Japonés",
"Javanés",
"Georgiano",
"Congolés",
"Kikuyu",
"Kuanyama",
"Kazajo",
"Groenlandés",
"Camboyano",
"Canarés",
"Coreano",
"Kanurí",
"Kashmiri Masala",
"Kurdo",
"Komi",
"Córnico",
"Kirguís",
"Latín",
"Luxemburgués",
"Luganda",
"Limburgués",
"Lingala",
"Lao",
"Lituano",
"Kiluba",
"Letón",
"Malgache",
"Marshalés",
"Maorí",
"Macedonio",
"Malabar",
"Mongol",
"Marathí",
"Malayo",
"Maltés",
"Birmano",
"Nauru",
"Ndebele norte",
"Nepalí",
"Ndonga",
"Neerlandés",
"Nuevo Noruego",
"Noruego",
"Ndebele sur",
"Navajo",
"Chichewa",
"Occitano",
"Ojibwa",
"Oromo",
"Oriya",
"Osetio",
"Panyabí",
"Pali",
"Polaco",
"Pastún",
"Portugués",
"Quechua",
"Romanche",
"Rundi",
"Rumano",
"Ruso",
"Kiñaruanda",
"Sánscrito",
"Sardo",
"Sindi",
"Sami septentrional",
"Sango",
"Cingalés",
"Eslovaco",
"Samoano",
"Shona",
"Somalí",
"Albanés",
"Serbio",
"Suazi",
"Sesoto",
"Sondanés",
"Sueco",
"Swahili",
"Tamil",
"Télugu",
"Takiyo",
"Tailandés",
"Tigriña",
"Turcomano",
"Tagalo",
"Setsuana",
"Tongoano",
"Turco",
"Tsonga",
"Tártaro",
"Tahitiano",
"Uigur",
"Ucraniano",
"Urdu",
"Uzbeko",
"Venda",
"Vietnamita",
"Valón",
"Wólof",
"Xhosa",
"Yidis",
"Yoruba",
"Zhuang",
"Chino",
"Zulú",
]

0 comments on commit eb088b8

Please sign in to comment.