Skip to content

Commit

Permalink
chore: update locales import
Browse files Browse the repository at this point in the history
  • Loading branch information
prisis committed Jan 19, 2022
1 parent 78cfd1b commit 73b57f6
Showing 1 changed file with 116 additions and 1 deletion.
117 changes: 116 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,64 @@ import { Time } from './time';
import { Unique } from './unique';
import { Vehicle } from './vehicle';
import { Word } from './word';
import {
ar,
az,
cz,
de,
el,
en,
es,
fa,
fi,
fr,
ge,
he,
hr,
hy,
it,
ja,
ko,
lv,
mk,
ne,
nl,
de_CH,
pl,
en_AU,
ro,
ru,
sk,
sv,
de_AT,
tr,
uk,
ur,
vi,
en_BORK,
en_CA,
en_GB,
en_GH,
en_IND,
en_IE,
en_AU_ocker,
en_NG,
en_US,
en_ZA,
es_MX,
fr_BE,
fr_CA,
fr_CH,
id_ID,
nb_NO,
nl_BE,
pt_BR,
pt_PT,
zh_CN,
zh_TW,
zu_ZA,
af_ZA,
} from './locales';

export interface LocaleDefinition {
title: string;
Expand Down Expand Up @@ -437,7 +495,64 @@ export class Faker {

// since we are requiring the top level of faker, load all locales by default
export const faker: Faker = new Faker({
locales: require('./locales'),
locales: {
ar,
az,
cz,
de,
el,
en,
es,
fa,
fi,
fr,
ge,
he,
hr,
hy,
it,
ja,
ko,
lv,
mk,
ne,
nl,
de_CH,
pl,
en_AU,
ro,
ru,
sk,
sv,
de_AT,
tr,
uk,
ur,
vi,
en_BORK,
en_CA,
en_GB,
en_GH,
en_IND,
en_IE,
en_AU_ocker,
en_NG,
en_US,
en_ZA,
es_MX,
fr_BE,
fr_CA,
fr_CH,
id_ID,
nb_NO,
nl_BE,
pt_BR,
pt_PT,
zh_CN,
zh_TW,
zu_ZA,
af_ZA,
},
});

export default faker;

0 comments on commit 73b57f6

Please sign in to comment.