Create faker instances while avoiding bug regarding too big bundle size #2178
-
Hi, since faker v8 the property Here's our previous approach for v7:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
So I assume this is not working for you, due to the bug? https://fakerjs.dev/guide/localization.html#custom-locales-and-fallbacks Could you try this and report us back? import { Faker } from "@faker-js/faker";
import { faker as fakerDe } from "@faker-js/faker/locale/de";
const myCustomFaker = new Faker({
locale: [fakerDe.rawDefinitions, ...],
}); |
Beta Was this translation helpful? Give feedback.
-
I would like to understand what do you wish to achieve with this code? |
Beta Was this translation helpful? Give feedback.
So I assume this is not working for you, due to the bug? https://fakerjs.dev/guide/localization.html#custom-locales-and-fallbacks
Could you try this and report us back?