Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
BolajiOlajide committed Sep 4, 2024
1 parent 1cbb417 commit 2f2955d
Show file tree
Hide file tree
Showing 16 changed files with 111 additions and 130 deletions.
12 changes: 7 additions & 5 deletions lib/locales/benin/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Localizer } from "..";
import type { Random } from "../../random";
import { Gender } from "../../types";
import { maleFirstNames, femaleFirstNames, lastNames, prefix } from "./names";
import type { Localizer } from '..';
import type { Random } from '../../random';
import { Gender } from '../../types';
import { maleFirstNames, femaleFirstNames, lastNames, prefix } from './names';

class BeninLocale implements Localizer {
private random: Random;
Expand All @@ -11,7 +11,9 @@ class BeninLocale implements Localizer {
}

public firstName(gender: Gender): string {
return this.random.arrayElement(gender === Gender.MALE ? maleFirstNames : femaleFirstNames) as string;
return this.random.arrayElement(
gender === Gender.MALE ? maleFirstNames : femaleFirstNames,
) as string;
}

public lastName(): string {
Expand Down
55 changes: 25 additions & 30 deletions lib/locales/benin/names.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,32 +25,32 @@ export const maleFirstNames = [
'Odogbo',
'Efosa',
'Osayuki',
'Nosa'
'Nosa',
];

export const femaleFirstNames = [
'Obiémwen',
'Obósuria',
'Obuhun-Emwinhiaye',
'Oghohon',
'Ogikebe',
'Ogiemwénva',
'Ohuimumwén',
'Ohunwu',
'Okhuómóla',
'Okunmaria',
'Okunmariawa',
'Okunsogie',
'Okunsuyi',
'Okunwaye',
'Okunzónamé',
'Oléde',
'Osamuéde',
'Isi',
'Osaréntin',
'Osarétinmwén',
'Osarugue',
'Ehis'
'Obiémwen',
'Obósuria',
'Obuhun-Emwinhiaye',
'Oghohon',
'Ogikebe',
'Ogiemwénva',
'Ohuimumwén',
'Ohunwu',
'Okhuómóla',
'Okunmaria',
'Okunmariawa',
'Okunsogie',
'Okunsuyi',
'Okunwaye',
'Okunzónamé',
'Oléde',
'Osamuéde',
'Isi',
'Osaréntin',
'Osarétinmwén',
'Osarugue',
'Ehis',
];

export const lastNames = [
Expand All @@ -61,12 +61,7 @@ export const lastNames = [
'Osaze',
'Oseye',
'Enomwoyi',
'Edenausegboye'
'Edenausegboye',
];

export const prefix = [
'Oba',
'Etubom',
'Obong',
'Muri'
];
export const prefix = ['Oba', 'Etubom', 'Obong', 'Muri'];
14 changes: 8 additions & 6 deletions lib/locales/efik/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Localizer } from "..";
import type { Random } from "../../random";
import { Gender } from "../../types";
import { maleFirstNames, femaleFirstNames, lastNames, prefix } from "./names";
import type { Localizer } from '..';
import type { Random } from '../../random';
import { Gender } from '../../types';
import { maleFirstNames, femaleFirstNames, lastNames, prefix } from './names';

class EfikLocale implements Localizer {
private random: Random;
Expand All @@ -11,7 +11,9 @@ class EfikLocale implements Localizer {
}

public firstName(gender: Gender): string {
return this.random.arrayElement(gender === Gender.MALE ? maleFirstNames : femaleFirstNames) as string;
return this.random.arrayElement(
gender === Gender.MALE ? maleFirstNames : femaleFirstNames,
) as string;
}

public lastName(): string {
Expand All @@ -23,4 +25,4 @@ class EfikLocale implements Localizer {
}
}

export { EfikLocale}
export { EfikLocale };
13 changes: 4 additions & 9 deletions lib/locales/efik/names.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const maleFirstNames = [
'Efanga',
'Aniyom',
'Esang',
'Amata'
'Amata',
];

export const femaleFirstNames = [
Expand Down Expand Up @@ -87,7 +87,7 @@ export const femaleFirstNames = [
'Idem',
'Edung',
'Umo',
'Ekanem'
'Ekanem',
];

export const lastNames = [
Expand All @@ -102,12 +102,7 @@ export const lastNames = [
'Akpan',
'Edet',
'Umoh',
'Enang'
'Enang',
];

export const prefix = [
'Amasi',
'Etubom',
'Obong',
'Muri'
];
export const prefix = ['Amasi', 'Etubom', 'Obong', 'Muri'];
12 changes: 7 additions & 5 deletions lib/locales/english/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Localizer } from "..";
import type { Random } from "../../random";
import { Gender } from "../../types";
import { maleFirstNames, femaleFirstNames, lastNames, prefix } from "./names";
import type { Localizer } from '..';
import type { Random } from '../../random';
import { Gender } from '../../types';
import { maleFirstNames, femaleFirstNames, lastNames, prefix } from './names';

class EnglishLocale implements Localizer {
private random: Random;
Expand All @@ -11,7 +11,9 @@ class EnglishLocale implements Localizer {
}

public firstName(gender: Gender): string {
return this.random.arrayElement(gender === Gender.MALE ? maleFirstNames : femaleFirstNames) as string;
return this.random.arrayElement(
gender === Gender.MALE ? maleFirstNames : femaleFirstNames,
) as string;
}

public lastName(): string {
Expand Down
19 changes: 6 additions & 13 deletions lib/locales/english/names.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export const maleFirstNames = [
'Monday',
'Friday',
'Innocent',
'Prosper'
];;
'Prosper',
];

export const femaleFirstNames = [
'Jane',
Expand Down Expand Up @@ -64,8 +64,8 @@ export const femaleFirstNames = [
'Emily',
'Robin',
'Lily',
'Gisele'
];;
'Gisele',
];

export const lastNames = [
'Smith',
Expand All @@ -82,14 +82,7 @@ export const lastNames = [
'Severin',
'Simpson',
'Evans',
'Pitt'
'Pitt',
];

export const prefix = [
'Mr.',
'Mrs.',
'Ms.',
'Miss',
'Dr.',
'Prof.'
];
export const prefix = ['Mr.', 'Mrs.', 'Ms.', 'Miss', 'Dr.', 'Prof.'];
12 changes: 7 additions & 5 deletions lib/locales/hausa/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Localizer } from "..";
import type { Random } from "../../random";
import { Gender } from "../../types";
import { maleFirstNames, femaleFirstNames, lastNames, prefix } from "./names";
import type { Localizer } from '..';
import type { Random } from '../../random';
import { Gender } from '../../types';
import { maleFirstNames, femaleFirstNames, lastNames, prefix } from './names';

class HausaLocale implements Localizer {
private random: Random;
Expand All @@ -11,7 +11,9 @@ class HausaLocale implements Localizer {
}

public firstName(gender: Gender): string {
return this.random.arrayElement(gender === Gender.MALE ? maleFirstNames : femaleFirstNames) as string;
return this.random.arrayElement(
gender === Gender.MALE ? maleFirstNames : femaleFirstNames,
) as string;
}

public lastName(): string {
Expand Down
29 changes: 10 additions & 19 deletions lib/locales/hausa/names.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ export const maleFirstNames = [
'Gambo',
'Bashir',
'Adamu',
'Ali'
'Ali',
];

export const femaleFirstNames = [
'Aisha',
'Aminah',
'Asma\'u',
"Asma'u",
'Zainab',
'Atikah',
'Fa\'idah',
'Fa\'iqah',
'Fa\'izah',
"Fa'idah",
"Fa'iqah",
"Fa'izah",
'Habibah',
'Halimah',
'Hamidah',
Expand All @@ -50,8 +50,8 @@ export const femaleFirstNames = [
'Maimuna',
'Nabilah',
'Nafisah',
'Na\'imah',
'Rab\'iah',
"Na'imah",
"Rab'iah",
'Safiyah',
'Sakinah',
'Salimah',
Expand All @@ -64,18 +64,9 @@ export const femaleFirstNames = [
'Fatima',
'Laraba',
'Hussaina',
'Hassana'
'Hassana',
];

export const lastNames = [
'Adamu',
'Mohammed',
'Bello',
'Ali',
'Aliyu'
];
export const lastNames = ['Adamu', 'Mohammed', 'Bello', 'Ali', 'Aliyu'];

export const prefix = [
'Alhaji',
'Aboki'
];
export const prefix = ['Alhaji', 'Aboki'];
12 changes: 7 additions & 5 deletions lib/locales/igbo/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Localizer } from "..";
import type { Random } from "../../random";
import { Gender } from "../../types";
import { maleFirstNames, femaleFirstNames, lastNames, prefix } from "./names";
import type { Localizer } from '..';
import type { Random } from '../../random';
import { Gender } from '../../types';
import { maleFirstNames, femaleFirstNames, lastNames, prefix } from './names';

class IgboLocale implements Localizer {
private random: Random;
Expand All @@ -11,7 +11,9 @@ class IgboLocale implements Localizer {
}

public firstName(gender: Gender): string {
return this.random.arrayElement(gender === Gender.MALE ? maleFirstNames : femaleFirstNames) as string;
return this.random.arrayElement(
gender === Gender.MALE ? maleFirstNames : femaleFirstNames,
) as string;
}

public lastName(): string {
Expand Down
15 changes: 4 additions & 11 deletions lib/locales/igbo/names.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const maleFirstNames = [
'Kelechi',
'Maduka',
'Munachimso',
'Okafor'
'Okafor',
];

export const femaleFirstNames = [
Expand Down Expand Up @@ -53,16 +53,9 @@ export const femaleFirstNames = [
'Amarachi',
'Oluchi',
'Chinyere',
'Chinasa'
'Chinasa',
];

export const lastNames = [
'Achebe',
'Amadi',
'Nwosu'
];
export const lastNames = ['Achebe', 'Amadi', 'Nwosu'];

export const prefix = [
'Igwe',
'Mazi'
];
export const prefix = ['Igwe', 'Mazi'];
2 changes: 1 addition & 1 deletion lib/locales/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Gender } from "../types";
import type { Gender } from '../types';

export interface Localizer {
firstName(gender: Gender): string;
Expand Down
12 changes: 7 additions & 5 deletions lib/locales/urhobo/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Localizer } from "..";
import type { Random } from "../../random";
import { Gender } from "../../types";
import { maleFirstNames, femaleFirstNames, lastNames, prefix } from "./names";
import type { Localizer } from '..';
import type { Random } from '../../random';
import { Gender } from '../../types';
import { maleFirstNames, femaleFirstNames, lastNames, prefix } from './names';

class UrhoboLocale implements Localizer {
private random: Random;
Expand All @@ -11,7 +11,9 @@ class UrhoboLocale implements Localizer {
}

public firstName(gender: Gender): string {
return this.random.arrayElement(gender === Gender.MALE ? maleFirstNames : femaleFirstNames) as string;
return this.random.arrayElement(
gender === Gender.MALE ? maleFirstNames : femaleFirstNames,
) as string;
}

public lastName(): string {
Expand Down
Loading

0 comments on commit 2f2955d

Please sign in to comment.