File tree 2 files changed +3
-2
lines changed 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import { Hacker } from './hacker';
12
12
import { Helpers } from './helpers' ;
13
13
import { Image } from './image' ;
14
14
import { Internet } from './internet' ;
15
+ import allLocales from './locales' ;
15
16
import { Lorem } from './lorem' ;
16
17
import { Mersenne } from './mersenne' ;
17
18
import { Music } from './music' ;
@@ -438,7 +439,7 @@ export class Faker {
438
439
439
440
// since we are requiring the top level of faker, load all locales by default
440
441
export const faker : Faker = new Faker ( {
441
- locales : require ( './locales' ) ,
442
+ locales : allLocales ,
442
443
} ) ;
443
444
444
445
export default faker ;
Original file line number Diff line number Diff line change @@ -115,4 +115,4 @@ const locales: { [lang: string]: LocaleDefinition } = {
115
115
zu_ZA,
116
116
} ;
117
117
118
- export = locales ;
118
+ export default locales ;
You can’t perform that action at this time.
0 commit comments