Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(locale): Add Street to location fr_SN #2536

Merged
merged 13 commits into from
Nov 14, 2023
Merged
Next Next commit
Senegal locale added
  • Loading branch information
makhtar-sarr committed Nov 3, 2023
commit 37eee44f7fe257bbb127f349daa4f02debf557a2
1 change: 1 addition & 0 deletions docs/guide/localization.md
Original file line number Diff line number Diff line change
@@ -108,6 +108,7 @@ In this example there are 5 locales. Each of these is checked in order, and the
| `fr_CA` | French (Canada) | `fakerFR_CA` |
| `fr_CH` | French (Switzerland) | `fakerFR_CH` |
| `fr_LU` | French (Luxembourg) | `fakerFR_LU` |
| `fr_SN` | French (Senegal) | `fakerFR_SN` |
| `he` | Hebrew | `fakerHE` |
| `hr` | Croatian | `fakerHR` |
| `hu` | Hungarian | `fakerHU` |
14 changes: 14 additions & 0 deletions src/locale/fr_SN.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* This file is automatically generated.
* Run 'pnpm run generate:locales' to update.
*/

import { Faker } from '../faker';
import base from '../locales/base';
import en from '../locales/en';
import fr from '../locales/fr';
import fr_SN from '../locales/fr_SN';

export const faker = new Faker({
locale: [fr_SN, fr, en, base],
});
3 changes: 3 additions & 0 deletions src/locale/index.ts
Original file line number Diff line number Diff line change
@@ -37,6 +37,7 @@ import { faker as fakerFR_BE } from './fr_BE';
import { faker as fakerFR_CA } from './fr_CA';
import { faker as fakerFR_CH } from './fr_CH';
import { faker as fakerFR_LU } from './fr_LU';
import { faker as fakerFR_SN } from './fr_SN';
import { faker as fakerHE } from './he';
import { faker as fakerHR } from './hr';
import { faker as fakerHU } from './hu';
@@ -106,6 +107,7 @@ export {
fakerFR_CA,
fakerFR_CH,
fakerFR_LU,
fakerFR_SN,
fakerHE,
fakerHR,
fakerHU,
@@ -176,6 +178,7 @@ export const allFakers = {
fr_CA: fakerFR_CA,
fr_CH: fakerFR_CH,
fr_LU: fakerFR_LU,
fr_SN: fakerFR_SN,
he: fakerHE,
hr: fakerHR,
hu: fakerHU,
20 changes: 20 additions & 0 deletions src/locales/fr_SN/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* This file is automatically generated.
* Run 'pnpm run generate:locales' to update.
*/
import type { LocaleDefinition } from '../..';
import internet from './internet';
import location from './location';
import metadata from './metadata';
import person from './person';
import phone_number from './phone_number';

const fr_SN: LocaleDefinition = {
internet,
location,
metadata,
person,
phone_number,
};

export default fr_SN;
1 change: 1 addition & 0 deletions src/locales/fr_SN/internet/domain_suffix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['sn', 'com', 'net', 'org'];
1 change: 1 addition & 0 deletions src/locales/fr_SN/internet/free_email.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['gmail.com', 'yahoo.ca', 'hotmail.com'];
14 changes: 14 additions & 0 deletions src/locales/fr_SN/internet/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* This file is automatically generated.
* Run 'pnpm run generate:locales' to update.
*/
import type { InternetDefinition } from '../../..';
import domain_suffix from './domain_suffix';
import free_email from './free_email';

const internet: InternetDefinition = {
domain_suffix,
free_email,
};

export default internet;
1 change: 1 addition & 0 deletions src/locales/fr_SN/location/building_number.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['####', '###', '##', '#'];
53 changes: 53 additions & 0 deletions src/locales/fr_SN/location/city_name.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
export default [
'Bakel',
'Bambey',
'Bargny',
'Bignona',
'Dagana',
'Dahra',
'Dakar',
'Diourbel',
'Fatick',
'Gandiaye',
'Gossas',
'Goudomp',
'Guinguinéo',
'Guédiawaye',
'Joal-Fadiouth',
'Kaffrine',
'Kanel',
'Kaolack',
'Kayar',
'Khombole',
'Kolda',
'Koungheul',
'Kébémer',
'Kédougou',
'Linguère',
'Louga',
'Matam',
'Mbacké',
'Mboro',
'Mbour',
'NDofan',
'Ndioum',
'Ngaaÿ Meckhe',
'Nguékhokh',
'Nioro du Rip',
'Ourossogui',
'Pikine',
'Pout',
'Richard-Toll',
'Rufisque',
'Saint-Louis',
'Sokone',
'Sébikhotane',
'Sédhiou',
'Tambacounda',
'Thiadiaye',
'Thiès',
'Tivaouane',
'Touba',
'Vélingara',
'Ziguinchor',
];
1 change: 1 addition & 0 deletions src/locales/fr_SN/location/city_pattern.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['{{location.city_name}}'];
1 change: 1 addition & 0 deletions src/locales/fr_SN/location/default_country.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['Sénégal'];
30 changes: 30 additions & 0 deletions src/locales/fr_SN/location/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* This file is automatically generated.
* Run 'pnpm run generate:locales' to update.
*/
import type { LocationDefinition } from '../../..';
import building_number from './building_number';
import city_name from './city_name';
import city_pattern from './city_pattern';
import default_country from './default_country';
import postcode from './postcode';
import secondary_address from './secondary_address';
import street_address from './street_address';
import street_pattern from './street_pattern';
import street_prefix from './street_prefix';
import street_suffix from './street_suffix';

const location: LocationDefinition = {
building_number,
city_name,
city_pattern,
default_country,
postcode,
secondary_address,
street_address,
street_pattern,
street_prefix,
street_suffix,
};

export default location;
1 change: 1 addition & 0 deletions src/locales/fr_SN/location/postcode.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['#####'];
1 change: 1 addition & 0 deletions src/locales/fr_SN/location/secondary_address.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['Apt. ###', '# étage'];
4 changes: 4 additions & 0 deletions src/locales/fr_SN/location/street_address.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default {
normal: '{{location.buildingNumber}} {{location.street}}',
full: '{{location.buildingNumber}} {{location.street}} {{location.secondaryAddress}}',
};
1 change: 1 addition & 0 deletions src/locales/fr_SN/location/street_pattern.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['{{location.street_prefix}} {{location.street_suffix}}'];
10 changes: 10 additions & 0 deletions src/locales/fr_SN/location/street_prefix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export default [
'Allée',
'Voie',
'Rue',
'Avenue',
'Boulevard',
'Quai',
'Place',
'Échangeur',
];
33 changes: 33 additions & 0 deletions src/locales/fr_SN/location/street_suffix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
export default [
"de l'alternance",
"de l'émergence",
'Abdou Aziz Sy Dabakh',
'Amadou Assane Ndoye',
'Birago Diop',
'Blaise Diagne',
'Cheikh Amadou Bamba',
'Cheikh Anta Diop',
'Cheikh Seydi El Hadji Malick Sy',
'Dial Diop',
'Faidherbe',
'Galandou Diouf',
'Houphouët Boigny',
'Lamine Gueye',
'Lat Dior',
'Léopold Sedar Senghor',
'Neslon Mandela',
'Saint Michel',
'St Joseph',
'Sérigne Fallou Mbacké',
'Victor Hugo',
'Wagane Diouf',
'William Ponty',
'Yacine Boubou',
'de Bordeaux',
'de Contournement Nord',
'de Nguinth',
'des Diambars',
'des Jasmins',
'du Baol',
'du Tirailleur',
];
13 changes: 13 additions & 0 deletions src/locales/fr_SN/metadata.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import type { PreBuiltMetadataDefinitionForCountry } from '../../definitions/metadata';

const metadata: PreBuiltMetadataDefinitionForCountry = {
title: 'French (Senegal)',
code: 'fr_SN',
country: 'SN',
language: 'fr',
endonym: 'Français (Sénégal)',
dir: 'ltr',
script: 'Latn',
};

export default metadata;
81 changes: 81 additions & 0 deletions src/locales/fr_SN/person/female_first_name.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
export default [
'Abibatou',
'Aby',
'Adama',
'Alima',
'Ami',
'Amie',
'Amina',
'Aminata',
'Amy',
'Anna',
'Arame',
'Asta',
'Astou',
'Atta',
'Awa',
'Aïcha',
'Aïda',
'Aïssa',
'Aïssata',
'Aïssatou',
'Banna',
'Bineta',
'Binta',
'Bintou',
'Coumba',
'Dado',
'Diarra',
'Dieynaba',
'Dior',
'Elisabeth',
'Elène',
'Fanta',
'Fatim',
'Fatima',
'Fatimata',
'Fatma',
'Fatou',
'Fatoumata',
'Fily',
'Haby',
'Hawa',
'Jeanne',
'Josephine',
'Kadiatou',
'Khadidiatou',
'Khady',
'Khoudia',
'Kiné',
'Lala',
'Madeleine',
'Maguette',
'Mariama',
'Marie',
'Marième',
'Mary',
'Marème',
'Maï',
'Maïmouna',
'Néné',
'Oumou',
'Paulette',
'Penda',
'Rama',
'Ramata',
'Ramatoulaye',
'Rokhaya',
'Rose',
'Safiatou',
'Safiétou',
'Salimata',
'Salimatou',
'Saly',
'Seynabou',
'Soda',
'Sokhna',
'Sophie',
'Thérèse',
'Yacine',
'Yaya',
];
5 changes: 5 additions & 0 deletions src/locales/fr_SN/person/first_name.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { mergeArrays } from './../../../internal/merge';
import female_first_name from './female_first_name';
import male_first_name from './male_first_name';

export default mergeArrays(female_first_name, male_first_name);
22 changes: 22 additions & 0 deletions src/locales/fr_SN/person/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* This file is automatically generated.
* Run 'pnpm run generate:locales' to update.
*/
import type { PersonDefinition } from '../../..';
import female_first_name from './female_first_name';
import first_name from './first_name';
import last_name from './last_name';
import last_name_pattern from './last_name_pattern';
import male_first_name from './male_first_name';
import name_ from './name';

const person: PersonDefinition = {
female_first_name,
first_name,
last_name,
last_name_pattern,
male_first_name,
name: name_,
};

export default person;
Loading