Skip to content

Commit

Permalink
feat: migrate locales to typescript (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT authored Jan 20, 2022
1 parent 66aa374 commit d4cfa3c
Show file tree
Hide file tree
Showing 3,568 changed files with 163,433 additions and 160,750 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ export interface LocaleDefinition {
preposition: any[];
verb: any[];
}>;
[group: string]: any;
}

export interface FakerOptions {
Expand Down
1 change: 0 additions & 1 deletion src/locales/af_ZA/address/default_country.js

This file was deleted.

1 change: 1 addition & 0 deletions src/locales/af_ZA/address/default_country.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['South Africa'];
4 changes: 0 additions & 4 deletions src/locales/af_ZA/address/index.js

This file was deleted.

9 changes: 9 additions & 0 deletions src/locales/af_ZA/address/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import default_country from './default_country';
import postcode from './postcode';

const address: any = {
default_country,
postcode,
};

export default address;
1 change: 0 additions & 1 deletion src/locales/af_ZA/address/postcode.js

This file was deleted.

1 change: 1 addition & 0 deletions src/locales/af_ZA/address/postcode.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['#####', '####'];
8 changes: 0 additions & 8 deletions src/locales/af_ZA/cell_phone/formats.js

This file was deleted.

8 changes: 8 additions & 0 deletions src/locales/af_ZA/cell_phone/formats.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default [
'082 ### ####',
'084 ### ####',
'083 ### ####',
'065 ### ####',
'082#######',
'082 #######',
];
3 changes: 0 additions & 3 deletions src/locales/af_ZA/cell_phone/index.js

This file was deleted.

7 changes: 7 additions & 0 deletions src/locales/af_ZA/cell_phone/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import formats from './formats';

const cell_phone: any = {
formats,
};

export default cell_phone;
3 changes: 0 additions & 3 deletions src/locales/af_ZA/company/index.js

This file was deleted.

7 changes: 7 additions & 0 deletions src/locales/af_ZA/company/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import suffix from './suffix';

const company: any = {
suffix,
};

export default company;
1 change: 0 additions & 1 deletion src/locales/af_ZA/company/suffix.js

This file was deleted.

1 change: 1 addition & 0 deletions src/locales/af_ZA/company/suffix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['Pty Ltd', 'Ltd', 'CC'];
17 changes: 12 additions & 5 deletions src/locales/af_ZA/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
import type { LocaleDefinition } from '../..';
import address from './address';
import cell_phone from './cell_phone';
import company from './company';
import internet from './internet';
import name from './name';
import phone_number from './phone_number';

const af_ZA: LocaleDefinition = {
title: 'Afrikaans',
address: require('./address'),
internet: require('./internet'),
phone_number: require('./phone_number'),
cell_phone: require('./cell_phone'),
company: require('./company'),
address,
cell_phone,
company,
internet,
name,
phone_number,
};

export default af_ZA;
1 change: 0 additions & 1 deletion src/locales/af_ZA/internet/domain_suffix.js

This file was deleted.

1 change: 1 addition & 0 deletions src/locales/af_ZA/internet/domain_suffix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['co.za', 'com', 'org.za', 'info', 'net.za'];
3 changes: 0 additions & 3 deletions src/locales/af_ZA/internet/index.js

This file was deleted.

7 changes: 7 additions & 0 deletions src/locales/af_ZA/internet/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import domain_suffix from './domain_suffix';

const internet: any = {
domain_suffix,
};

export default internet;
113 changes: 0 additions & 113 deletions src/locales/af_ZA/name/female_first_name.js

This file was deleted.

113 changes: 113 additions & 0 deletions src/locales/af_ZA/name/female_first_name.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
export default [
'Susan',
'Monica',
'Linda',
'Elsa',
'Susan',
'Margaret',
'Lisa',
'Karen',
'Helen',
'Sandra',
'Sara',
'Kimberly',
'Angelique',
'Melissa',
'Brenda',
'Anna',
'Annelie',
'Katryn',
'Amanda',
'Stefanie',
'Marie',
'Janet',
'Rosemarie',
'Nicoleen',
'Paula',
'Robin',
'Rita',
'Edna',
'Carmen',
'Cindy',
'Edith',
'Ethel',
'Ellen',
'Elaine',
'Charlotte',
'Pauline',
'Juanita',
'Anita',
'Rhonda',
'Hazel',
'Debbie',
'Clara',
'Lucille',
'Eleanor',
'Alicia',
'Michele',
'Geraldine',
'Erika',
'Bernice',
'Audrey',
'Yvonne',
'Annette',
'Renette',
'Ida',
'Melanie',
'Jolanda',
'Vanessa',
'Alma',
'Sue-Marie',
'Elsa',
'Carla',
'Rosemary',
'Wilma',
'Kristin',
'Natalie',
'Charlene',
'Melinda',
'Maureen',
'Tanya',
'Marlene',
'Heidi',
'Lydia',
'Vickie',
'Nina',
'Leona',
'Jenny',
'Sonia',
'Kristina',
'Erika',
'Katrina',
'Belinda',
'Natasha',
'Cecile',
'Angie',
'Lynda',
'Amelia',
'Monique',
'Kayla',
'Yvette',
'Olivia',
'Antoinette',
'Bridgette',
'Karla',
'Leticia',
'Krista',
'Robyn',
'Rosalie',
'Bernadette',
'Krystal',
'Nadine',
'Estelle',
'Lynette',
'Eloise',
'Jana',
'Kerry',
'Jenna',
'Tasha',
'Sonja',
'Elsa',
'Elisa',
'Kristie',
];
Loading

0 comments on commit d4cfa3c

Please sign in to comment.