From 37eee44f7fe257bbb127f349daa4f02debf557a2 Mon Sep 17 00:00:00 2001 From: Makhtar Sarr Date: Fri, 3 Nov 2023 18:20:03 +0000 Subject: [PATCH 1/7] Senegal locale added --- docs/guide/localization.md | 1 + src/locale/fr_SN.ts | 14 ++ src/locale/index.ts | 3 + src/locales/fr_SN/index.ts | 20 +++ src/locales/fr_SN/internet/domain_suffix.ts | 1 + src/locales/fr_SN/internet/free_email.ts | 1 + src/locales/fr_SN/internet/index.ts | 14 ++ src/locales/fr_SN/location/building_number.ts | 1 + src/locales/fr_SN/location/city_name.ts | 53 +++++++ src/locales/fr_SN/location/city_pattern.ts | 1 + src/locales/fr_SN/location/default_country.ts | 1 + src/locales/fr_SN/location/index.ts | 30 ++++ src/locales/fr_SN/location/postcode.ts | 1 + .../fr_SN/location/secondary_address.ts | 1 + src/locales/fr_SN/location/street_address.ts | 4 + src/locales/fr_SN/location/street_pattern.ts | 1 + src/locales/fr_SN/location/street_prefix.ts | 10 ++ src/locales/fr_SN/location/street_suffix.ts | 33 ++++ src/locales/fr_SN/metadata.ts | 13 ++ src/locales/fr_SN/person/female_first_name.ts | 81 ++++++++++ src/locales/fr_SN/person/first_name.ts | 5 + src/locales/fr_SN/person/index.ts | 22 +++ src/locales/fr_SN/person/last_name.ts | 150 ++++++++++++++++++ src/locales/fr_SN/person/last_name_pattern.ts | 1 + src/locales/fr_SN/person/male_first_name.ts | 105 ++++++++++++ src/locales/fr_SN/person/name.ts | 3 + src/locales/fr_SN/phone_number/formats.ts | 20 +++ src/locales/fr_SN/phone_number/index.ts | 12 ++ src/locales/index.ts | 1 + 29 files changed, 603 insertions(+) create mode 100644 src/locale/fr_SN.ts create mode 100644 src/locales/fr_SN/index.ts create mode 100644 src/locales/fr_SN/internet/domain_suffix.ts create mode 100644 src/locales/fr_SN/internet/free_email.ts create mode 100644 src/locales/fr_SN/internet/index.ts create mode 100644 src/locales/fr_SN/location/building_number.ts create mode 100644 src/locales/fr_SN/location/city_name.ts create mode 100644 src/locales/fr_SN/location/city_pattern.ts create mode 100644 src/locales/fr_SN/location/default_country.ts create mode 100644 src/locales/fr_SN/location/index.ts create mode 100644 src/locales/fr_SN/location/postcode.ts create mode 100644 src/locales/fr_SN/location/secondary_address.ts create mode 100644 src/locales/fr_SN/location/street_address.ts create mode 100644 src/locales/fr_SN/location/street_pattern.ts create mode 100644 src/locales/fr_SN/location/street_prefix.ts create mode 100644 src/locales/fr_SN/location/street_suffix.ts create mode 100644 src/locales/fr_SN/metadata.ts create mode 100644 src/locales/fr_SN/person/female_first_name.ts create mode 100644 src/locales/fr_SN/person/first_name.ts create mode 100644 src/locales/fr_SN/person/index.ts create mode 100644 src/locales/fr_SN/person/last_name.ts create mode 100644 src/locales/fr_SN/person/last_name_pattern.ts create mode 100644 src/locales/fr_SN/person/male_first_name.ts create mode 100644 src/locales/fr_SN/person/name.ts create mode 100644 src/locales/fr_SN/phone_number/formats.ts create mode 100644 src/locales/fr_SN/phone_number/index.ts diff --git a/docs/guide/localization.md b/docs/guide/localization.md index 44f5f2fe034..8f8c1333d5b 100644 --- a/docs/guide/localization.md +++ b/docs/guide/localization.md @@ -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` | diff --git a/src/locale/fr_SN.ts b/src/locale/fr_SN.ts new file mode 100644 index 00000000000..13f50a4e715 --- /dev/null +++ b/src/locale/fr_SN.ts @@ -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], +}); diff --git a/src/locale/index.ts b/src/locale/index.ts index 733e41dfeb9..b4c0799f257 100644 --- a/src/locale/index.ts +++ b/src/locale/index.ts @@ -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, diff --git a/src/locales/fr_SN/index.ts b/src/locales/fr_SN/index.ts new file mode 100644 index 00000000000..d61781e34da --- /dev/null +++ b/src/locales/fr_SN/index.ts @@ -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; diff --git a/src/locales/fr_SN/internet/domain_suffix.ts b/src/locales/fr_SN/internet/domain_suffix.ts new file mode 100644 index 00000000000..4c9e2ae0793 --- /dev/null +++ b/src/locales/fr_SN/internet/domain_suffix.ts @@ -0,0 +1 @@ +export default ['sn', 'com', 'net', 'org']; diff --git a/src/locales/fr_SN/internet/free_email.ts b/src/locales/fr_SN/internet/free_email.ts new file mode 100644 index 00000000000..958590ebd0d --- /dev/null +++ b/src/locales/fr_SN/internet/free_email.ts @@ -0,0 +1 @@ +export default ['gmail.com', 'yahoo.ca', 'hotmail.com']; diff --git a/src/locales/fr_SN/internet/index.ts b/src/locales/fr_SN/internet/index.ts new file mode 100644 index 00000000000..0b63b5f2fb5 --- /dev/null +++ b/src/locales/fr_SN/internet/index.ts @@ -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; diff --git a/src/locales/fr_SN/location/building_number.ts b/src/locales/fr_SN/location/building_number.ts new file mode 100644 index 00000000000..b875f685863 --- /dev/null +++ b/src/locales/fr_SN/location/building_number.ts @@ -0,0 +1 @@ +export default ['####', '###', '##', '#']; diff --git a/src/locales/fr_SN/location/city_name.ts b/src/locales/fr_SN/location/city_name.ts new file mode 100644 index 00000000000..8e7b51ca8ee --- /dev/null +++ b/src/locales/fr_SN/location/city_name.ts @@ -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', +]; diff --git a/src/locales/fr_SN/location/city_pattern.ts b/src/locales/fr_SN/location/city_pattern.ts new file mode 100644 index 00000000000..ad43b68fc5c --- /dev/null +++ b/src/locales/fr_SN/location/city_pattern.ts @@ -0,0 +1 @@ +export default ['{{location.city_name}}']; diff --git a/src/locales/fr_SN/location/default_country.ts b/src/locales/fr_SN/location/default_country.ts new file mode 100644 index 00000000000..dd6221e0c48 --- /dev/null +++ b/src/locales/fr_SN/location/default_country.ts @@ -0,0 +1 @@ +export default ['Sénégal']; diff --git a/src/locales/fr_SN/location/index.ts b/src/locales/fr_SN/location/index.ts new file mode 100644 index 00000000000..e339819064a --- /dev/null +++ b/src/locales/fr_SN/location/index.ts @@ -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; diff --git a/src/locales/fr_SN/location/postcode.ts b/src/locales/fr_SN/location/postcode.ts new file mode 100644 index 00000000000..db2bcfedae5 --- /dev/null +++ b/src/locales/fr_SN/location/postcode.ts @@ -0,0 +1 @@ +export default ['#####']; diff --git a/src/locales/fr_SN/location/secondary_address.ts b/src/locales/fr_SN/location/secondary_address.ts new file mode 100644 index 00000000000..776ec15169b --- /dev/null +++ b/src/locales/fr_SN/location/secondary_address.ts @@ -0,0 +1 @@ +export default ['Apt. ###', '# étage']; diff --git a/src/locales/fr_SN/location/street_address.ts b/src/locales/fr_SN/location/street_address.ts new file mode 100644 index 00000000000..2e1a661d418 --- /dev/null +++ b/src/locales/fr_SN/location/street_address.ts @@ -0,0 +1,4 @@ +export default { + normal: '{{location.buildingNumber}} {{location.street}}', + full: '{{location.buildingNumber}} {{location.street}} {{location.secondaryAddress}}', +}; diff --git a/src/locales/fr_SN/location/street_pattern.ts b/src/locales/fr_SN/location/street_pattern.ts new file mode 100644 index 00000000000..f62f53f0931 --- /dev/null +++ b/src/locales/fr_SN/location/street_pattern.ts @@ -0,0 +1 @@ +export default ['{{location.street_prefix}} {{location.street_suffix}}']; diff --git a/src/locales/fr_SN/location/street_prefix.ts b/src/locales/fr_SN/location/street_prefix.ts new file mode 100644 index 00000000000..6f1d0c998c6 --- /dev/null +++ b/src/locales/fr_SN/location/street_prefix.ts @@ -0,0 +1,10 @@ +export default [ + 'Allée', + 'Voie', + 'Rue', + 'Avenue', + 'Boulevard', + 'Quai', + 'Place', + 'Échangeur', +]; diff --git a/src/locales/fr_SN/location/street_suffix.ts b/src/locales/fr_SN/location/street_suffix.ts new file mode 100644 index 00000000000..5dff1b5a62b --- /dev/null +++ b/src/locales/fr_SN/location/street_suffix.ts @@ -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', +]; diff --git a/src/locales/fr_SN/metadata.ts b/src/locales/fr_SN/metadata.ts new file mode 100644 index 00000000000..94cf70d498f --- /dev/null +++ b/src/locales/fr_SN/metadata.ts @@ -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; diff --git a/src/locales/fr_SN/person/female_first_name.ts b/src/locales/fr_SN/person/female_first_name.ts new file mode 100644 index 00000000000..fc2a743237a --- /dev/null +++ b/src/locales/fr_SN/person/female_first_name.ts @@ -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', +]; diff --git a/src/locales/fr_SN/person/first_name.ts b/src/locales/fr_SN/person/first_name.ts new file mode 100644 index 00000000000..3c787970a71 --- /dev/null +++ b/src/locales/fr_SN/person/first_name.ts @@ -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); diff --git a/src/locales/fr_SN/person/index.ts b/src/locales/fr_SN/person/index.ts new file mode 100644 index 00000000000..148d05fa360 --- /dev/null +++ b/src/locales/fr_SN/person/index.ts @@ -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; diff --git a/src/locales/fr_SN/person/last_name.ts b/src/locales/fr_SN/person/last_name.ts new file mode 100644 index 00000000000..581729d7562 --- /dev/null +++ b/src/locales/fr_SN/person/last_name.ts @@ -0,0 +1,150 @@ +export default [ + 'Aidara', + 'Amar', + 'Anne', + 'Aw', + 'Ba', + 'Babou', + 'Badiane', + 'Badji', + 'Bakhoum', + 'Balde', + 'Barry', + 'Beye', + 'Biteye', + 'Bodian', + 'Boye', + 'Camara', + 'Ciss', + 'Cisse', + 'Cissokho', + 'Coly', + 'Coulibaly', + 'Dabo', + 'Dembele', + 'Deme', + 'Dia', + 'Diaby', + 'Diack', + 'Diagne', + 'Diakhate', + 'Diallo', + 'Diamanka', + 'Diao', + 'Diarra', + 'Diatta', + 'Diattara', + 'Diaw', + 'Diawara', + 'Diedhiou', + 'Dieme', + 'Diene', + 'Dieng', + 'Dieye', + 'Diome', + 'Dione', + 'Diongue', + 'Diop', + 'Diouf', + 'Dioum', + 'Djitte', + 'Drame', + 'Fall', + 'Faty', + 'Faye', + 'Fofana', + 'Gadiaga', + 'Gassama', + 'Gaye', + 'Gning', + 'Gningue', + 'Gomis', + 'Goudiaby', + 'Gueye', + 'Guisse', + 'Hane', + 'Ka', + 'Kamara', + 'Kande', + 'Kandji', + 'Kane', + 'Kante', + 'Kasse', + 'Kebe', + 'Keita', + 'Khouma', + 'Konate', + 'Konte', + 'Lam', + 'Leye', + 'Lo', + 'Loum', + 'Ly', + 'Mane', + 'Manga', + 'Mangane', + 'Mar', + 'Mbacke', + 'Mballo', + 'Mbaye', + 'Mbengue', + 'Mbodj', + 'Mboup', + 'Mbow', + 'Mendy', + 'Ndao', + 'Ndaw', + 'Ndiaye', + 'Ndione', + 'Ndir', + 'Ndong', + 'Ndour', + 'Ndoye', + 'Ngom', + 'Nguer', + 'Niane', + 'Niang', + 'Niass', + 'Niasse', + 'Pouye', + 'Sabaly', + 'Sadio', + 'Sagna', + 'Sakho', + 'Sall', + 'Samb', + 'Samba', + 'Sambe', + 'Sambou', + 'Sane', + 'Sarr', + 'Seck', + 'Segnane', + 'Sene', + 'Senghor', + 'Seydi', + 'Seye', + 'Sidibe', + 'Sonko', + 'Souare', + 'Soumare', + 'Sow', + 'Sy', + 'Sylla', + 'Tall', + 'Tamba', + 'Thiam', + 'Thiao', + 'Thiaw', + 'Thiongane', + 'Thioub', + 'Thioune', + 'Tine', + 'Top', + 'Toure', + 'Traore', + 'Wade', + 'Wane', + 'Willane', + 'Yade', +]; diff --git a/src/locales/fr_SN/person/last_name_pattern.ts b/src/locales/fr_SN/person/last_name_pattern.ts new file mode 100644 index 00000000000..c66a770f4e3 --- /dev/null +++ b/src/locales/fr_SN/person/last_name_pattern.ts @@ -0,0 +1 @@ +export default [{ value: '{{person.last_name}}', weight: 1 }]; diff --git a/src/locales/fr_SN/person/male_first_name.ts b/src/locales/fr_SN/person/male_first_name.ts new file mode 100644 index 00000000000..ad7c8bd2737 --- /dev/null +++ b/src/locales/fr_SN/person/male_first_name.ts @@ -0,0 +1,105 @@ +export default [ + 'Abdou', + 'Abdoul', + 'Abdoulaye', + 'Abou', + 'Aboubacar', + 'Adama', + 'Ahmed', + 'Alassane', + 'Aliou', + 'Alioune', + 'Alpha', + 'Aly', + 'Amadou', + 'Amady', + 'Amath', + 'Amdy', + 'Ameth', + 'Antoine', + 'Arona', + 'Baba', + 'Babacar', + 'Bakary', + 'Birane', + 'Bouba', + 'Boubacar', + 'Boubou', + 'Cheikh', + 'Cheikhou', + 'Chekhouna', + 'Cherif', + 'Dame', + 'Daouda', + 'Demba', + 'Djibril', + 'Hamidou', + 'Ibou', + 'Ibra', + 'Ibrahima', + 'Idrissa', + 'Idy', + 'Insa', + 'Ismaïla', + 'Issa', + 'Jean', + 'Joseph', + 'Kalidou', + 'Keba', + 'Khadim', + 'Khalifa', + 'Lamine', + 'Lassana', + 'Mactar', + 'Mady', + 'Makhtar', + 'Malick', + 'Mama', + 'Mamadou', + 'Mamady', + 'Mamour', + 'Mansour', + 'Massamba', + 'Matar', + 'Mbaye', + 'Medoune', + 'Meissa', + 'Michel', + 'Moctar', + 'Modou', + 'Mohamadou', + 'Mohamed', + 'Mohammed', + 'Mouhamadou', + 'Mouhamed', + 'Mouhameth', + 'Mouhammadou', + 'Moussa', + 'Moustapha', + 'Omar', + 'Oumar', + 'Ousmane', + 'Pathe', + 'Paul', + 'Pierre', + 'Sada', + 'Sadio', + 'Saer', + 'Sagar', + 'Salif', + 'Saliou', + 'Samba', + 'Seckou', + 'Sekou', + 'Seydou', + 'Sidy', + 'Sire', + 'Souleymane', + 'Thierno', + 'Tidiane', + 'Waly', + 'Yoro', + 'Youssou', + 'Youssouph', + 'Youssoupha', +]; diff --git a/src/locales/fr_SN/person/name.ts b/src/locales/fr_SN/person/name.ts new file mode 100644 index 00000000000..3ed8a80c86e --- /dev/null +++ b/src/locales/fr_SN/person/name.ts @@ -0,0 +1,3 @@ +export default [ + { value: '{{person.firstName}} {{person.lastName}}', weight: 1 }, +]; diff --git a/src/locales/fr_SN/phone_number/formats.ts b/src/locales/fr_SN/phone_number/formats.ts new file mode 100644 index 00000000000..308d4a3152d --- /dev/null +++ b/src/locales/fr_SN/phone_number/formats.ts @@ -0,0 +1,20 @@ +export default [ + '77 ### ## ##', + '70 ### ## ##', + '75 ### ## ##', + '76 ### ## ##', + '78 ### ## ##', + '33 8## ## ##', + '33 9## ## ##', + '30 ### ## ##', + '32 ### ## ##', + '+221 77 ### ## ##', + '+221 70 ### ## ##', + '+221 75 ### ## ##', + '+221 76 ### ## ##', + '+221 78 ### ## ##', + '+221 33 8## ## ##', + '+221 33 9## ## ##', + '+221 30 ### ## ##', + '+221 32 ### ## ##', +]; diff --git a/src/locales/fr_SN/phone_number/index.ts b/src/locales/fr_SN/phone_number/index.ts new file mode 100644 index 00000000000..1d7f77f10b9 --- /dev/null +++ b/src/locales/fr_SN/phone_number/index.ts @@ -0,0 +1,12 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { PhoneNumberDefinition } from '../../..'; +import formats from './formats'; + +const phone_number: PhoneNumberDefinition = { + formats, +}; + +export default phone_number; diff --git a/src/locales/index.ts b/src/locales/index.ts index 04109822e84..3ca1c0e2e93 100644 --- a/src/locales/index.ts +++ b/src/locales/index.ts @@ -37,6 +37,7 @@ export { default as fr_BE } from './fr_BE'; export { default as fr_CA } from './fr_CA'; export { default as fr_CH } from './fr_CH'; export { default as fr_LU } from './fr_LU'; +export { default as fr_SN } from './fr_SN'; export { default as he } from './he'; export { default as hr } from './hr'; export { default as hu } from './hu'; From a207422b828374edbd871b5beb8b83bd62db2027 Mon Sep 17 00:00:00 2001 From: Makhtar Sarr Date: Sat, 4 Nov 2023 12:02:12 +0000 Subject: [PATCH 2/7] Split PR: metadata and module/internet --- src/locales/fr_SN/index.ts | 6 - src/locales/fr_SN/location/building_number.ts | 1 - src/locales/fr_SN/location/city_name.ts | 53 ------- src/locales/fr_SN/location/city_pattern.ts | 1 - src/locales/fr_SN/location/default_country.ts | 1 - src/locales/fr_SN/location/index.ts | 30 ---- src/locales/fr_SN/location/postcode.ts | 1 - .../fr_SN/location/secondary_address.ts | 1 - src/locales/fr_SN/location/street_address.ts | 4 - src/locales/fr_SN/location/street_pattern.ts | 1 - src/locales/fr_SN/location/street_prefix.ts | 10 -- src/locales/fr_SN/location/street_suffix.ts | 33 ---- src/locales/fr_SN/person/female_first_name.ts | 81 ---------- src/locales/fr_SN/person/first_name.ts | 5 - src/locales/fr_SN/person/index.ts | 22 --- src/locales/fr_SN/person/last_name.ts | 150 ------------------ src/locales/fr_SN/person/last_name_pattern.ts | 1 - src/locales/fr_SN/person/male_first_name.ts | 105 ------------ src/locales/fr_SN/person/name.ts | 3 - src/locales/fr_SN/phone_number/formats.ts | 20 --- src/locales/fr_SN/phone_number/index.ts | 12 -- 21 files changed, 541 deletions(-) delete mode 100644 src/locales/fr_SN/location/building_number.ts delete mode 100644 src/locales/fr_SN/location/city_name.ts delete mode 100644 src/locales/fr_SN/location/city_pattern.ts delete mode 100644 src/locales/fr_SN/location/default_country.ts delete mode 100644 src/locales/fr_SN/location/index.ts delete mode 100644 src/locales/fr_SN/location/postcode.ts delete mode 100644 src/locales/fr_SN/location/secondary_address.ts delete mode 100644 src/locales/fr_SN/location/street_address.ts delete mode 100644 src/locales/fr_SN/location/street_pattern.ts delete mode 100644 src/locales/fr_SN/location/street_prefix.ts delete mode 100644 src/locales/fr_SN/location/street_suffix.ts delete mode 100644 src/locales/fr_SN/person/female_first_name.ts delete mode 100644 src/locales/fr_SN/person/first_name.ts delete mode 100644 src/locales/fr_SN/person/index.ts delete mode 100644 src/locales/fr_SN/person/last_name.ts delete mode 100644 src/locales/fr_SN/person/last_name_pattern.ts delete mode 100644 src/locales/fr_SN/person/male_first_name.ts delete mode 100644 src/locales/fr_SN/person/name.ts delete mode 100644 src/locales/fr_SN/phone_number/formats.ts delete mode 100644 src/locales/fr_SN/phone_number/index.ts diff --git a/src/locales/fr_SN/index.ts b/src/locales/fr_SN/index.ts index d61781e34da..027ca3f3054 100644 --- a/src/locales/fr_SN/index.ts +++ b/src/locales/fr_SN/index.ts @@ -4,17 +4,11 @@ */ 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; diff --git a/src/locales/fr_SN/location/building_number.ts b/src/locales/fr_SN/location/building_number.ts deleted file mode 100644 index b875f685863..00000000000 --- a/src/locales/fr_SN/location/building_number.ts +++ /dev/null @@ -1 +0,0 @@ -export default ['####', '###', '##', '#']; diff --git a/src/locales/fr_SN/location/city_name.ts b/src/locales/fr_SN/location/city_name.ts deleted file mode 100644 index 8e7b51ca8ee..00000000000 --- a/src/locales/fr_SN/location/city_name.ts +++ /dev/null @@ -1,53 +0,0 @@ -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', -]; diff --git a/src/locales/fr_SN/location/city_pattern.ts b/src/locales/fr_SN/location/city_pattern.ts deleted file mode 100644 index ad43b68fc5c..00000000000 --- a/src/locales/fr_SN/location/city_pattern.ts +++ /dev/null @@ -1 +0,0 @@ -export default ['{{location.city_name}}']; diff --git a/src/locales/fr_SN/location/default_country.ts b/src/locales/fr_SN/location/default_country.ts deleted file mode 100644 index dd6221e0c48..00000000000 --- a/src/locales/fr_SN/location/default_country.ts +++ /dev/null @@ -1 +0,0 @@ -export default ['Sénégal']; diff --git a/src/locales/fr_SN/location/index.ts b/src/locales/fr_SN/location/index.ts deleted file mode 100644 index e339819064a..00000000000 --- a/src/locales/fr_SN/location/index.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* - * 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; diff --git a/src/locales/fr_SN/location/postcode.ts b/src/locales/fr_SN/location/postcode.ts deleted file mode 100644 index db2bcfedae5..00000000000 --- a/src/locales/fr_SN/location/postcode.ts +++ /dev/null @@ -1 +0,0 @@ -export default ['#####']; diff --git a/src/locales/fr_SN/location/secondary_address.ts b/src/locales/fr_SN/location/secondary_address.ts deleted file mode 100644 index 776ec15169b..00000000000 --- a/src/locales/fr_SN/location/secondary_address.ts +++ /dev/null @@ -1 +0,0 @@ -export default ['Apt. ###', '# étage']; diff --git a/src/locales/fr_SN/location/street_address.ts b/src/locales/fr_SN/location/street_address.ts deleted file mode 100644 index 2e1a661d418..00000000000 --- a/src/locales/fr_SN/location/street_address.ts +++ /dev/null @@ -1,4 +0,0 @@ -export default { - normal: '{{location.buildingNumber}} {{location.street}}', - full: '{{location.buildingNumber}} {{location.street}} {{location.secondaryAddress}}', -}; diff --git a/src/locales/fr_SN/location/street_pattern.ts b/src/locales/fr_SN/location/street_pattern.ts deleted file mode 100644 index f62f53f0931..00000000000 --- a/src/locales/fr_SN/location/street_pattern.ts +++ /dev/null @@ -1 +0,0 @@ -export default ['{{location.street_prefix}} {{location.street_suffix}}']; diff --git a/src/locales/fr_SN/location/street_prefix.ts b/src/locales/fr_SN/location/street_prefix.ts deleted file mode 100644 index 6f1d0c998c6..00000000000 --- a/src/locales/fr_SN/location/street_prefix.ts +++ /dev/null @@ -1,10 +0,0 @@ -export default [ - 'Allée', - 'Voie', - 'Rue', - 'Avenue', - 'Boulevard', - 'Quai', - 'Place', - 'Échangeur', -]; diff --git a/src/locales/fr_SN/location/street_suffix.ts b/src/locales/fr_SN/location/street_suffix.ts deleted file mode 100644 index 5dff1b5a62b..00000000000 --- a/src/locales/fr_SN/location/street_suffix.ts +++ /dev/null @@ -1,33 +0,0 @@ -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', -]; diff --git a/src/locales/fr_SN/person/female_first_name.ts b/src/locales/fr_SN/person/female_first_name.ts deleted file mode 100644 index fc2a743237a..00000000000 --- a/src/locales/fr_SN/person/female_first_name.ts +++ /dev/null @@ -1,81 +0,0 @@ -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', -]; diff --git a/src/locales/fr_SN/person/first_name.ts b/src/locales/fr_SN/person/first_name.ts deleted file mode 100644 index 3c787970a71..00000000000 --- a/src/locales/fr_SN/person/first_name.ts +++ /dev/null @@ -1,5 +0,0 @@ -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); diff --git a/src/locales/fr_SN/person/index.ts b/src/locales/fr_SN/person/index.ts deleted file mode 100644 index 148d05fa360..00000000000 --- a/src/locales/fr_SN/person/index.ts +++ /dev/null @@ -1,22 +0,0 @@ -/* - * 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; diff --git a/src/locales/fr_SN/person/last_name.ts b/src/locales/fr_SN/person/last_name.ts deleted file mode 100644 index 581729d7562..00000000000 --- a/src/locales/fr_SN/person/last_name.ts +++ /dev/null @@ -1,150 +0,0 @@ -export default [ - 'Aidara', - 'Amar', - 'Anne', - 'Aw', - 'Ba', - 'Babou', - 'Badiane', - 'Badji', - 'Bakhoum', - 'Balde', - 'Barry', - 'Beye', - 'Biteye', - 'Bodian', - 'Boye', - 'Camara', - 'Ciss', - 'Cisse', - 'Cissokho', - 'Coly', - 'Coulibaly', - 'Dabo', - 'Dembele', - 'Deme', - 'Dia', - 'Diaby', - 'Diack', - 'Diagne', - 'Diakhate', - 'Diallo', - 'Diamanka', - 'Diao', - 'Diarra', - 'Diatta', - 'Diattara', - 'Diaw', - 'Diawara', - 'Diedhiou', - 'Dieme', - 'Diene', - 'Dieng', - 'Dieye', - 'Diome', - 'Dione', - 'Diongue', - 'Diop', - 'Diouf', - 'Dioum', - 'Djitte', - 'Drame', - 'Fall', - 'Faty', - 'Faye', - 'Fofana', - 'Gadiaga', - 'Gassama', - 'Gaye', - 'Gning', - 'Gningue', - 'Gomis', - 'Goudiaby', - 'Gueye', - 'Guisse', - 'Hane', - 'Ka', - 'Kamara', - 'Kande', - 'Kandji', - 'Kane', - 'Kante', - 'Kasse', - 'Kebe', - 'Keita', - 'Khouma', - 'Konate', - 'Konte', - 'Lam', - 'Leye', - 'Lo', - 'Loum', - 'Ly', - 'Mane', - 'Manga', - 'Mangane', - 'Mar', - 'Mbacke', - 'Mballo', - 'Mbaye', - 'Mbengue', - 'Mbodj', - 'Mboup', - 'Mbow', - 'Mendy', - 'Ndao', - 'Ndaw', - 'Ndiaye', - 'Ndione', - 'Ndir', - 'Ndong', - 'Ndour', - 'Ndoye', - 'Ngom', - 'Nguer', - 'Niane', - 'Niang', - 'Niass', - 'Niasse', - 'Pouye', - 'Sabaly', - 'Sadio', - 'Sagna', - 'Sakho', - 'Sall', - 'Samb', - 'Samba', - 'Sambe', - 'Sambou', - 'Sane', - 'Sarr', - 'Seck', - 'Segnane', - 'Sene', - 'Senghor', - 'Seydi', - 'Seye', - 'Sidibe', - 'Sonko', - 'Souare', - 'Soumare', - 'Sow', - 'Sy', - 'Sylla', - 'Tall', - 'Tamba', - 'Thiam', - 'Thiao', - 'Thiaw', - 'Thiongane', - 'Thioub', - 'Thioune', - 'Tine', - 'Top', - 'Toure', - 'Traore', - 'Wade', - 'Wane', - 'Willane', - 'Yade', -]; diff --git a/src/locales/fr_SN/person/last_name_pattern.ts b/src/locales/fr_SN/person/last_name_pattern.ts deleted file mode 100644 index c66a770f4e3..00000000000 --- a/src/locales/fr_SN/person/last_name_pattern.ts +++ /dev/null @@ -1 +0,0 @@ -export default [{ value: '{{person.last_name}}', weight: 1 }]; diff --git a/src/locales/fr_SN/person/male_first_name.ts b/src/locales/fr_SN/person/male_first_name.ts deleted file mode 100644 index ad7c8bd2737..00000000000 --- a/src/locales/fr_SN/person/male_first_name.ts +++ /dev/null @@ -1,105 +0,0 @@ -export default [ - 'Abdou', - 'Abdoul', - 'Abdoulaye', - 'Abou', - 'Aboubacar', - 'Adama', - 'Ahmed', - 'Alassane', - 'Aliou', - 'Alioune', - 'Alpha', - 'Aly', - 'Amadou', - 'Amady', - 'Amath', - 'Amdy', - 'Ameth', - 'Antoine', - 'Arona', - 'Baba', - 'Babacar', - 'Bakary', - 'Birane', - 'Bouba', - 'Boubacar', - 'Boubou', - 'Cheikh', - 'Cheikhou', - 'Chekhouna', - 'Cherif', - 'Dame', - 'Daouda', - 'Demba', - 'Djibril', - 'Hamidou', - 'Ibou', - 'Ibra', - 'Ibrahima', - 'Idrissa', - 'Idy', - 'Insa', - 'Ismaïla', - 'Issa', - 'Jean', - 'Joseph', - 'Kalidou', - 'Keba', - 'Khadim', - 'Khalifa', - 'Lamine', - 'Lassana', - 'Mactar', - 'Mady', - 'Makhtar', - 'Malick', - 'Mama', - 'Mamadou', - 'Mamady', - 'Mamour', - 'Mansour', - 'Massamba', - 'Matar', - 'Mbaye', - 'Medoune', - 'Meissa', - 'Michel', - 'Moctar', - 'Modou', - 'Mohamadou', - 'Mohamed', - 'Mohammed', - 'Mouhamadou', - 'Mouhamed', - 'Mouhameth', - 'Mouhammadou', - 'Moussa', - 'Moustapha', - 'Omar', - 'Oumar', - 'Ousmane', - 'Pathe', - 'Paul', - 'Pierre', - 'Sada', - 'Sadio', - 'Saer', - 'Sagar', - 'Salif', - 'Saliou', - 'Samba', - 'Seckou', - 'Sekou', - 'Seydou', - 'Sidy', - 'Sire', - 'Souleymane', - 'Thierno', - 'Tidiane', - 'Waly', - 'Yoro', - 'Youssou', - 'Youssouph', - 'Youssoupha', -]; diff --git a/src/locales/fr_SN/person/name.ts b/src/locales/fr_SN/person/name.ts deleted file mode 100644 index 3ed8a80c86e..00000000000 --- a/src/locales/fr_SN/person/name.ts +++ /dev/null @@ -1,3 +0,0 @@ -export default [ - { value: '{{person.firstName}} {{person.lastName}}', weight: 1 }, -]; diff --git a/src/locales/fr_SN/phone_number/formats.ts b/src/locales/fr_SN/phone_number/formats.ts deleted file mode 100644 index 308d4a3152d..00000000000 --- a/src/locales/fr_SN/phone_number/formats.ts +++ /dev/null @@ -1,20 +0,0 @@ -export default [ - '77 ### ## ##', - '70 ### ## ##', - '75 ### ## ##', - '76 ### ## ##', - '78 ### ## ##', - '33 8## ## ##', - '33 9## ## ##', - '30 ### ## ##', - '32 ### ## ##', - '+221 77 ### ## ##', - '+221 70 ### ## ##', - '+221 75 ### ## ##', - '+221 76 ### ## ##', - '+221 78 ### ## ##', - '+221 33 8## ## ##', - '+221 33 9## ## ##', - '+221 30 ### ## ##', - '+221 32 ### ## ##', -]; diff --git a/src/locales/fr_SN/phone_number/index.ts b/src/locales/fr_SN/phone_number/index.ts deleted file mode 100644 index 1d7f77f10b9..00000000000 --- a/src/locales/fr_SN/phone_number/index.ts +++ /dev/null @@ -1,12 +0,0 @@ -/* - * This file is automatically generated. - * Run 'pnpm run generate:locales' to update. - */ -import type { PhoneNumberDefinition } from '../../..'; -import formats from './formats'; - -const phone_number: PhoneNumberDefinition = { - formats, -}; - -export default phone_number; From 6f906b470bbc872a5129b127e6983a51ef18af7c Mon Sep 17 00:00:00 2001 From: Makhtar Sarr Date: Sat, 4 Nov 2023 14:07:40 +0000 Subject: [PATCH 3/7] fix yahoo.ca to yahoo.com --- src/locales/fr_SN/internet/free_email.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/locales/fr_SN/internet/free_email.ts b/src/locales/fr_SN/internet/free_email.ts index 958590ebd0d..8ef7d24397b 100644 --- a/src/locales/fr_SN/internet/free_email.ts +++ b/src/locales/fr_SN/internet/free_email.ts @@ -1 +1 @@ -export default ['gmail.com', 'yahoo.ca', 'hotmail.com']; +export default ['gmail.com', 'yahoo.com', 'hotmail.com']; From af503908dfd3b337bbbb6dd516724266d7dc6207 Mon Sep 17 00:00:00 2001 From: Makhtar Sarr Date: Sun, 5 Nov 2023 12:22:28 +0000 Subject: [PATCH 4/7] fix fail tests, adding fr_SN to test/all-functional.spec.ts --- test/all-functional.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/all-functional.spec.ts b/test/all-functional.spec.ts index 91c310b2b3d..4512b748a0e 100644 --- a/test/all-functional.spec.ts +++ b/test/all-functional.spec.ts @@ -43,9 +43,9 @@ const BROKEN_LOCALE_METHODS = { person: { prefix: ['az', 'id_ID', 'ru', 'zh_CN', 'zh_TW'], suffix: ['az', 'it', 'mk', 'pt_PT', 'ro_MD', 'ru'], - jobArea: ['ar', 'fr', 'fr_BE', 'fr_CA', 'fr_CH', 'fr_LU'], - jobDescriptor: ['ar', 'fr', 'fr_BE', 'fr_CA', 'fr_CH', 'fr_LU'], - jobTitle: ['ar', 'fr', 'fr_BE', 'fr_CA', 'fr_CH', 'fr_LU', 'ur'], + jobArea: ['ar', 'fr', 'fr_BE', 'fr_CA', 'fr_CH', 'fr_LU', 'fr_SN'], + jobDescriptor: ['ar', 'fr', 'fr_BE', 'fr_CA', 'fr_CH', 'fr_LU', 'fr_SN'], + jobTitle: ['ar', 'fr', 'fr_BE', 'fr_CA', 'fr_CH', 'fr_LU', 'ur', 'fr_SN'], jobType: ['ur'], }, } satisfies { From 14ba6619e7637e9a891dc8931517708be5f2afdb Mon Sep 17 00:00:00 2001 From: Makhtar Sarr Date: Wed, 8 Nov 2023 13:15:16 +0000 Subject: [PATCH 5/7] add location in fr_SN --- src/locales/fr_SN/index.ts | 2 + src/locales/fr_SN/location/building_number.ts | 1 + src/locales/fr_SN/location/city_name.ts | 53 +++++++++++++++++++ src/locales/fr_SN/location/city_pattern.ts | 1 + src/locales/fr_SN/location/default_country.ts | 1 + src/locales/fr_SN/location/index.ts | 20 +++++++ src/locales/fr_SN/location/postcode.ts | 1 + 7 files changed, 79 insertions(+) create mode 100644 src/locales/fr_SN/location/building_number.ts create mode 100644 src/locales/fr_SN/location/city_name.ts create mode 100644 src/locales/fr_SN/location/city_pattern.ts create mode 100644 src/locales/fr_SN/location/default_country.ts create mode 100644 src/locales/fr_SN/location/index.ts create mode 100644 src/locales/fr_SN/location/postcode.ts diff --git a/src/locales/fr_SN/index.ts b/src/locales/fr_SN/index.ts index 027ca3f3054..5a35c753b4f 100644 --- a/src/locales/fr_SN/index.ts +++ b/src/locales/fr_SN/index.ts @@ -4,10 +4,12 @@ */ import type { LocaleDefinition } from '../..'; import internet from './internet'; +import location from './location'; import metadata from './metadata'; const fr_SN: LocaleDefinition = { internet, + location, metadata, }; diff --git a/src/locales/fr_SN/location/building_number.ts b/src/locales/fr_SN/location/building_number.ts new file mode 100644 index 00000000000..b875f685863 --- /dev/null +++ b/src/locales/fr_SN/location/building_number.ts @@ -0,0 +1 @@ +export default ['####', '###', '##', '#']; diff --git a/src/locales/fr_SN/location/city_name.ts b/src/locales/fr_SN/location/city_name.ts new file mode 100644 index 00000000000..8e7b51ca8ee --- /dev/null +++ b/src/locales/fr_SN/location/city_name.ts @@ -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', +]; diff --git a/src/locales/fr_SN/location/city_pattern.ts b/src/locales/fr_SN/location/city_pattern.ts new file mode 100644 index 00000000000..ad43b68fc5c --- /dev/null +++ b/src/locales/fr_SN/location/city_pattern.ts @@ -0,0 +1 @@ +export default ['{{location.city_name}}']; diff --git a/src/locales/fr_SN/location/default_country.ts b/src/locales/fr_SN/location/default_country.ts new file mode 100644 index 00000000000..dd6221e0c48 --- /dev/null +++ b/src/locales/fr_SN/location/default_country.ts @@ -0,0 +1 @@ +export default ['Sénégal']; diff --git a/src/locales/fr_SN/location/index.ts b/src/locales/fr_SN/location/index.ts new file mode 100644 index 00000000000..d50f81cd65a --- /dev/null +++ b/src/locales/fr_SN/location/index.ts @@ -0,0 +1,20 @@ +/* + * 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'; + +const location: LocationDefinition = { + building_number, + city_name, + city_pattern, + default_country, + postcode, +}; + +export default location; diff --git a/src/locales/fr_SN/location/postcode.ts b/src/locales/fr_SN/location/postcode.ts new file mode 100644 index 00000000000..db2bcfedae5 --- /dev/null +++ b/src/locales/fr_SN/location/postcode.ts @@ -0,0 +1 @@ +export default ['#####']; From f3161cda8b16a3d4b0036ab6a4c689ef4bd2f66f Mon Sep 17 00:00:00 2001 From: Makhtar Sarr Date: Thu, 9 Nov 2023 14:08:47 +0000 Subject: [PATCH 6/7] add region as state to location --- src/locales/fr_SN/location/index.ts | 2 ++ src/locales/fr_SN/location/state.ts | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 src/locales/fr_SN/location/state.ts diff --git a/src/locales/fr_SN/location/index.ts b/src/locales/fr_SN/location/index.ts index d50f81cd65a..f46a91ce126 100644 --- a/src/locales/fr_SN/location/index.ts +++ b/src/locales/fr_SN/location/index.ts @@ -8,6 +8,7 @@ import city_name from './city_name'; import city_pattern from './city_pattern'; import default_country from './default_country'; import postcode from './postcode'; +import state from './state'; const location: LocationDefinition = { building_number, @@ -15,6 +16,7 @@ const location: LocationDefinition = { city_pattern, default_country, postcode, + state, }; export default location; diff --git a/src/locales/fr_SN/location/state.ts b/src/locales/fr_SN/location/state.ts new file mode 100644 index 00000000000..da6aa87a848 --- /dev/null +++ b/src/locales/fr_SN/location/state.ts @@ -0,0 +1,16 @@ +export default [ + 'Dakar', + 'Diourbel', + 'Fatick', + 'Kaffrine', + 'Kaolack', + 'Kolda', + 'Kédougou', + 'Louga', + 'Matam', + 'Saint-Louis', + 'Sédhiou', + 'Tambacounda', + 'Thiès', + 'Ziguinchor', +]; From dc858e1a645a74301c082e2603d9855a8bfb8095 Mon Sep 17 00:00:00 2001 From: Makhtar Sarr Date: Fri, 10 Nov 2023 12:25:29 +0000 Subject: [PATCH 7/7] add street to location fr_SN --- src/locales/fr_SN/location/index.ts | 10 ++++++ .../fr_SN/location/secondary_address.ts | 1 + src/locales/fr_SN/location/street_address.ts | 4 +++ src/locales/fr_SN/location/street_pattern.ts | 1 + src/locales/fr_SN/location/street_prefix.ts | 12 +++++++ src/locales/fr_SN/location/street_suffix.ts | 33 +++++++++++++++++++ 6 files changed, 61 insertions(+) create mode 100644 src/locales/fr_SN/location/secondary_address.ts create mode 100644 src/locales/fr_SN/location/street_address.ts create mode 100644 src/locales/fr_SN/location/street_pattern.ts create mode 100644 src/locales/fr_SN/location/street_prefix.ts create mode 100644 src/locales/fr_SN/location/street_suffix.ts diff --git a/src/locales/fr_SN/location/index.ts b/src/locales/fr_SN/location/index.ts index f46a91ce126..c13e4805f72 100644 --- a/src/locales/fr_SN/location/index.ts +++ b/src/locales/fr_SN/location/index.ts @@ -8,7 +8,12 @@ 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 state from './state'; +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, @@ -16,7 +21,12 @@ const location: LocationDefinition = { city_pattern, default_country, postcode, + secondary_address, state, + street_address, + street_pattern, + street_prefix, + street_suffix, }; export default location; diff --git a/src/locales/fr_SN/location/secondary_address.ts b/src/locales/fr_SN/location/secondary_address.ts new file mode 100644 index 00000000000..776ec15169b --- /dev/null +++ b/src/locales/fr_SN/location/secondary_address.ts @@ -0,0 +1 @@ +export default ['Apt. ###', '# étage']; diff --git a/src/locales/fr_SN/location/street_address.ts b/src/locales/fr_SN/location/street_address.ts new file mode 100644 index 00000000000..2e1a661d418 --- /dev/null +++ b/src/locales/fr_SN/location/street_address.ts @@ -0,0 +1,4 @@ +export default { + normal: '{{location.buildingNumber}} {{location.street}}', + full: '{{location.buildingNumber}} {{location.street}} {{location.secondaryAddress}}', +}; diff --git a/src/locales/fr_SN/location/street_pattern.ts b/src/locales/fr_SN/location/street_pattern.ts new file mode 100644 index 00000000000..f62f53f0931 --- /dev/null +++ b/src/locales/fr_SN/location/street_pattern.ts @@ -0,0 +1 @@ +export default ['{{location.street_prefix}} {{location.street_suffix}}']; diff --git a/src/locales/fr_SN/location/street_prefix.ts b/src/locales/fr_SN/location/street_prefix.ts new file mode 100644 index 00000000000..d03abd97564 --- /dev/null +++ b/src/locales/fr_SN/location/street_prefix.ts @@ -0,0 +1,12 @@ +export default [ + 'Allée', + 'Voie', + 'Rue', + 'Avenue', + 'Boulevard', + 'Quai', + 'Place', + 'Échangeur', + 'Résidence', + 'Immeuble', +]; diff --git a/src/locales/fr_SN/location/street_suffix.ts b/src/locales/fr_SN/location/street_suffix.ts new file mode 100644 index 00000000000..5dff1b5a62b --- /dev/null +++ b/src/locales/fr_SN/location/street_suffix.ts @@ -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', +];