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 yo locale, start with person #2363

Merged
merged 11 commits into from
Sep 3, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 | `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';
16 changes: 16 additions & 0 deletions src/locales/yo_NG/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* This file is automatically generated.
* Run 'pnpm run generate:locales' to update.
*/
import type { LocaleDefinition } from '../..';
import location from './location';
import metadata from './metadata';
import person from './person';

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

export default yo_NG;
12 changes: 12 additions & 0 deletions src/locales/yo_NG/location/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* This file is automatically generated.
* Run 'pnpm run generate:locales' to update.
*/
import type { LocationDefinition } from '../../..';
import street_name from './street_name';

const location: LocationDefinition = {
street_name,
};

export default location;
1 change: 1 addition & 0 deletions src/locales/yo_NG/location/street_name.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['Olaiya'];
mrsimi marked this conversation as resolved.
Show resolved Hide resolved
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',
mrsimi marked this conversation as resolved.
Show resolved Hide resolved
code: 'yo_NG',
country: 'NG',
language: 'yo',
endonym: 'Yoruba',
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',
];
64 changes: 64 additions & 0 deletions src/locales/yo_NG/person/first_name.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
export default [
'Abimbola',
'Abiola',
'Ade',
'Adebankole',
'Adebola',
'Adedaramola',
'Adedoyin',
'Adeola',
'Alaba',
'Ara',
'Ayomide',
'Ayomikun',
'Ayotude',
'Busayo',
'Damilola',
'Damola',
'Darasimi',
'Ebunoluwa',
'Erioluwa',
'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