Skip to content

Commit

Permalink
feat(locale): add person data for yo locale (#2363)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsimi authored Sep 3, 2023
1 parent 6bb4775 commit 76886ad
Show file tree
Hide file tree
Showing 13 changed files with 404 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/guide/localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ In this example there are 5 locales. Each of these is checked in order, and the
| `uk` | Ukrainian | `fakerUK` |
| `ur` | Urdu | `fakerUR` |
| `vi` | Vietnamese | `fakerVI` |
| `yo_NG` | Yoruba (Nigeria) | `fakerYO_NG` |
| `zh_CN` | Chinese (China) | `fakerZH_CN` |
| `zh_TW` | Chinese (Taiwan) | `fakerZH_TW` |
| `zu_ZA` | Zulu (South Africa) | `fakerZU_ZA` |
Expand Down
3 changes: 3 additions & 0 deletions src/locale/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ import { faker as fakerTR } from './tr';
import { faker as fakerUK } from './uk';
import { faker as fakerUR } from './ur';
import { faker as fakerVI } from './vi';
import { faker as fakerYO_NG } from './yo_NG';
import { faker as fakerZH_CN } from './zh_CN';
import { faker as fakerZH_TW } from './zh_TW';
import { faker as fakerZU_ZA } from './zu_ZA';
Expand Down Expand Up @@ -134,6 +135,7 @@ export {
fakerUK,
fakerUR,
fakerVI,
fakerYO_NG,
fakerZH_CN,
fakerZH_TW,
fakerZU_ZA,
Expand Down Expand Up @@ -203,6 +205,7 @@ export const allFakers = {
uk: fakerUK,
ur: fakerUR,
vi: fakerVI,
yo_NG: fakerYO_NG,
zh_CN: fakerZH_CN,
zh_TW: fakerZH_TW,
zu_ZA: fakerZU_ZA,
Expand Down
13 changes: 13 additions & 0 deletions src/locale/yo_NG.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* 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 yo_NG from '../locales/yo_NG';

export const faker = new Faker({
locale: [yo_NG, en, base],
});
1 change: 1 addition & 0 deletions src/locales/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export { default as tr } from './tr';
export { default as uk } from './uk';
export { default as ur } from './ur';
export { default as vi } from './vi';
export { default as yo_NG } from './yo_NG';
export { default as zh_CN } from './zh_CN';
export { default as zh_TW } from './zh_TW';
export { default as zu_ZA } from './zu_ZA';
14 changes: 14 additions & 0 deletions src/locales/yo_NG/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 { LocaleDefinition } from '../..';
import metadata from './metadata';
import person from './person';

const yo_NG: LocaleDefinition = {
metadata,
person,
};

export default yo_NG;
13 changes: 13 additions & 0 deletions src/locales/yo_NG/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: 'Yoruba (Nigeria)',
code: 'yo_NG',
country: 'NG',
language: 'yo',
endonym: 'Yoruba (Naijiria)',
dir: 'ltr',
script: 'Latn',
};

export default metadata;
86 changes: 86 additions & 0 deletions src/locales/yo_NG/person/female_first_name.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
export default [
'Aanuoluwapo',
'Abebi',
'Abeni',
'Abosede',
'Adebukola',
'Adenike',
'Adepeju',
'Adesewa',
'Adesua',
'Adetoke',
'Adetoun',
'Adunni',
'Ajoke',
'Amoke',
'Amope',
'Arike',
'Arinola',
'Asake',
'Atinuke',
'Awero',
'Ayinke',
'Ayoka',
'Bolatito',
'Boluwatife',
'Bunmi',
'Doyinsola',
'Eniola',
'Ewatomi',
'Fadekemi',
'Faderera',
'Fehintola',
'Fibikemi',
'Fikayomi',
'Folashade',
'Ibironke',
'Iretioluwa',
'Iyabode',
'Iyadunni',
'Kikelomo',
'Modupe',
'Mofifoluwa',
'Mojisola',
'Mojisoluwa',
'Moradeke',
'Morayo',
'Morenike',
'Morolake',
'Mosinmileoluwa',
'Mosunmola',
'Motunrayo',
'Moyosore',
'Ninioluwa',
'Olajumoke',
'Olasunmbo',
'Ololade',
'Olufunke',
'Olufunmilayo',
'Oluwakemi',
'Omobolanle',
'Omodunni',
'Omolabake',
'Omolara',
'Omosalewa',
'Omotara',
'Omotola',
'Omotoun',
'Omowumi',
'Oreofe',
'Oyenike',
'Oyindasola',
'Radeke',
'Ronke',
'Segilola',
'Similoluwa',
'Simisola',
'Sowande',
'Subomi',
'Titilayo',
'Tolulope',
'Toluwanimi',
'Wuraola',
'Yejide',
'Yetunde',
'Yewande',
];
63 changes: 63 additions & 0 deletions src/locales/yo_NG/person/first_name.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
export default [
'Abimbola',
'Abiola',
'Ade',
'Adebankole',
'Adebola',
'Adedaramola',
'Adedoyin',
'Adeola',
'Alaba',
'Ara',
'Ayomide',
'Ayomikun',
'Ayotude',
'Busayo',
'Damilola',
'Damola',
'Darasimi',
'Ebunoluwa',
'FolaFoluwa',
'Ibukunoluwa',
'Idowu',
'Ifeoluwa',
'Imoleoluwa',
'Iremide',
'Itunuoluwa',
'Iyanuoluwa',
'Iyinoluwa',
'Kehinde',
'Mobolaji',
'Odunayo',
'Okiki',
'Ola',
'Oladara',
'Olamide',
'Olaoluwa',
'Olatunbosun',
'Olayinka',
'Olufeyisayo',
'Olusola',
'Olutomiwa',
'Oluwasemilore',
'Oluwaseun',
'Oluwaseyi',
'Oluwatimilehin',
'Oluwatobiloba',
'Oluwatofunmi',
'Oluwatosin',
'Oluwatoyosi',
'Oluwatumise',
'Omolola',
'Omotolani',
'Opemipo',
'Opeoluwa',
'Opeyemi',
'Oyindamola',
'Pelumi',
'Shola',
'Taiwo',
'Tejumola',
'Temitope',
'Toluwalope',
];
20 changes: 20 additions & 0 deletions src/locales/yo_NG/person/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 { 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';

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

export default person;
100 changes: 100 additions & 0 deletions src/locales/yo_NG/person/last_name.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
export default [
'Adebisi',
'Adegbite',
'Adegoke',
'Adekunle',
'Adelakun',
'Adeleke',
'Adelusi',
'Ademiluyi',
'Aderibigbe',
'Aderogba',
'Adesiyan',
'Adeyemo',
'Adisa',
'Afolabi',
'Afolayan',
'Afonja',
'Ajao',
'Ajayi',
'Ajewole',
'Akinrinola',
'Alabi',
'Aloba',
'Awodiran',
'Awolowo',
'Ayandokun',
'Ayoola',
'Babtunde',
'Bakare',
'Balogun',
'Bamidele',
'Bamiloye',
'Edun',
'Fadipe',
'Fagunwa',
'Fajimi',
'Falabi',
'Faleti',
'Faloye',
'Fasasi',
'Ibikunle',
'Ilori',
'Ilupeju',
'Iyanda',
'Jaiyeola',
'Kolade',
'Kosoko',
'Koya',
'Makinde',
'Makinwa',
'Morawo',
'Ninalowo',
'Odetola',
'Odunsi',
'Ogindan',
'Oginni',
'Ogulana',
'Ogunbamigbe',
'Ogunbiyi',
'Ogunbo',
'Ogunde',
'Ogunwobi',
'Ogunyeye',
'Ojo',
'Ojua',
'Olabode',
'Oladipupo',
'Olaiya',
'Olasupo',
'Olowokeere',
'Oloyede',
'Olubode',
'Olugbayila',
'Olujimi',
'Olukotun',
'Olukunga',
'Olusanya',
'Oluwagbemi',
'Omidina',
'Omojola',
'Omotoso',
'Oparinde',
'Oshin',
'Osuntokun',
'Owokoniran',
'Owolabi',
'Owoyemi',
'Oyadiran',
'Oyaifo',
'Oyeniyi',
'Oyetoro',
'Oyeyemi',
'Oyinlola',
'Paimo',
'Salako',
'Salami',
'Shekoni',
'Sobowale',
'Soyinka',
];
1 change: 1 addition & 0 deletions src/locales/yo_NG/person/last_name_pattern.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default [{ value: '{{person.last_name}}', weight: 1 }];
Loading

0 comments on commit 76886ad

Please sign in to comment.