We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c7d7f0 commit 25ae3a0Copy full SHA for 25ae3a0
src/faker.ts
@@ -114,7 +114,7 @@ export class Faker {
114
Object.defineProperty(this.definitions[moduleName], entryName, {
115
get: () => {
116
const localizedModule = this.locales[this.locale][moduleName];
117
- if (typeof localizedModule?.[entryName] === 'undefined') {
+ if (localizedModule?.[entryName] == null) {
118
// certain localization sets contain less data then others.
119
// in the case of a missing definition, use the default localeFallback
120
// to substitute the missing set data
0 commit comments