Skip to content

Commit d4cfa3c

Browse files
authored
feat: migrate locales to typescript (#238)
1 parent 66aa374 commit d4cfa3c

File tree

3,568 files changed

+163433
-160750
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,568 files changed

+163433
-160750
lines changed

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ export interface LocaleDefinition {
182182
preposition: any[];
183183
verb: any[];
184184
}>;
185+
[group: string]: any;
185186
}
186187

187188
export interface FakerOptions {

src/locales/af_ZA/address/default_country.js

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default ['South Africa'];

src/locales/af_ZA/address/index.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/locales/af_ZA/address/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import default_country from './default_country';
2+
import postcode from './postcode';
3+
4+
const address: any = {
5+
default_country,
6+
postcode,
7+
};
8+
9+
export default address;

src/locales/af_ZA/address/postcode.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/locales/af_ZA/address/postcode.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default ['#####', '####'];

src/locales/af_ZA/cell_phone/formats.js

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export default [
2+
'082 ### ####',
3+
'084 ### ####',
4+
'083 ### ####',
5+
'065 ### ####',
6+
'082#######',
7+
'082 #######',
8+
];

src/locales/af_ZA/cell_phone/index.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/locales/af_ZA/cell_phone/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import formats from './formats';
2+
3+
const cell_phone: any = {
4+
formats,
5+
};
6+
7+
export default cell_phone;

src/locales/af_ZA/company/index.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/locales/af_ZA/company/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import suffix from './suffix';
2+
3+
const company: any = {
4+
suffix,
5+
};
6+
7+
export default company;

src/locales/af_ZA/company/suffix.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/locales/af_ZA/company/suffix.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default ['Pty Ltd', 'Ltd', 'CC'];

src/locales/af_ZA/index.ts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
import type { LocaleDefinition } from '../..';
2+
import address from './address';
3+
import cell_phone from './cell_phone';
4+
import company from './company';
5+
import internet from './internet';
6+
import name from './name';
7+
import phone_number from './phone_number';
28

39
const af_ZA: LocaleDefinition = {
410
title: 'Afrikaans',
5-
address: require('./address'),
6-
internet: require('./internet'),
7-
phone_number: require('./phone_number'),
8-
cell_phone: require('./cell_phone'),
9-
company: require('./company'),
11+
address,
12+
cell_phone,
13+
company,
14+
internet,
15+
name,
16+
phone_number,
1017
};
1118

1219
export default af_ZA;

src/locales/af_ZA/internet/domain_suffix.js

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default ['co.za', 'com', 'org.za', 'info', 'net.za'];

src/locales/af_ZA/internet/index.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/locales/af_ZA/internet/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import domain_suffix from './domain_suffix';
2+
3+
const internet: any = {
4+
domain_suffix,
5+
};
6+
7+
export default internet;

src/locales/af_ZA/name/female_first_name.js

Lines changed: 0 additions & 113 deletions
This file was deleted.
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
export default [
2+
'Susan',
3+
'Monica',
4+
'Linda',
5+
'Elsa',
6+
'Susan',
7+
'Margaret',
8+
'Lisa',
9+
'Karen',
10+
'Helen',
11+
'Sandra',
12+
'Sara',
13+
'Kimberly',
14+
'Angelique',
15+
'Melissa',
16+
'Brenda',
17+
'Anna',
18+
'Annelie',
19+
'Katryn',
20+
'Amanda',
21+
'Stefanie',
22+
'Marie',
23+
'Janet',
24+
'Rosemarie',
25+
'Nicoleen',
26+
'Paula',
27+
'Robin',
28+
'Rita',
29+
'Edna',
30+
'Carmen',
31+
'Cindy',
32+
'Edith',
33+
'Ethel',
34+
'Ellen',
35+
'Elaine',
36+
'Charlotte',
37+
'Pauline',
38+
'Juanita',
39+
'Anita',
40+
'Rhonda',
41+
'Hazel',
42+
'Debbie',
43+
'Clara',
44+
'Lucille',
45+
'Eleanor',
46+
'Alicia',
47+
'Michele',
48+
'Geraldine',
49+
'Erika',
50+
'Bernice',
51+
'Audrey',
52+
'Yvonne',
53+
'Annette',
54+
'Renette',
55+
'Ida',
56+
'Melanie',
57+
'Jolanda',
58+
'Vanessa',
59+
'Alma',
60+
'Sue-Marie',
61+
'Elsa',
62+
'Carla',
63+
'Rosemary',
64+
'Wilma',
65+
'Kristin',
66+
'Natalie',
67+
'Charlene',
68+
'Melinda',
69+
'Maureen',
70+
'Tanya',
71+
'Marlene',
72+
'Heidi',
73+
'Lydia',
74+
'Vickie',
75+
'Nina',
76+
'Leona',
77+
'Jenny',
78+
'Sonia',
79+
'Kristina',
80+
'Erika',
81+
'Katrina',
82+
'Belinda',
83+
'Natasha',
84+
'Cecile',
85+
'Angie',
86+
'Lynda',
87+
'Amelia',
88+
'Monique',
89+
'Kayla',
90+
'Yvette',
91+
'Olivia',
92+
'Antoinette',
93+
'Bridgette',
94+
'Karla',
95+
'Leticia',
96+
'Krista',
97+
'Robyn',
98+
'Rosalie',
99+
'Bernadette',
100+
'Krystal',
101+
'Nadine',
102+
'Estelle',
103+
'Lynette',
104+
'Eloise',
105+
'Jana',
106+
'Kerry',
107+
'Jenna',
108+
'Tasha',
109+
'Sonja',
110+
'Elsa',
111+
'Elisa',
112+
'Kristie',
113+
];

0 commit comments

Comments
 (0)