diff options
| author | ST-DDT <[email protected]> | 2025-02-28 08:24:02 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-02-28 08:24:02 +0100 |
| commit | 41ebbbbe4432b7583f4bd51c5339be0af8ed09c9 (patch) | |
| tree | 52f42cc575dd521ce586c24778756914557d15db /src/faker.ts | |
| parent | dce28d6e46b57043339471b5db5ec8f0e121fdcd (diff) | |
| download | faker-41ebbbbe4432b7583f4bd51c5339be0af8ed09c9.tar.xz faker-41ebbbbe4432b7583f4bd51c5339be0af8ed09c9.zip | |
docs: improve missing data error (#3406)
Diffstat (limited to 'src/faker.ts')
| -rw-r--r-- | src/faker.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/faker.ts b/src/faker.ts index 0b03788b..d9e9905b 100644 --- a/src/faker.ts +++ b/src/faker.ts @@ -120,7 +120,9 @@ export class Faker extends SimpleFaker { * For more information see our [Localization Guide](https://fakerjs.dev/guide/localization.html). * * @param options The options to use. - * @param options.locale The locale data to use. + * @param options.locale The locale data to use for this instance. + * If an array is provided, the first locale that has a definition for a given property will be used. + * Please make sure that all required locales and their parent locales are present, e.g. `[de_AT, de, en, base]`. * @param options.randomizer The Randomizer to use. * Specify this only if you want to use it to achieve a specific goal, * such as sharing the same random generator with other instances/tools. @@ -148,6 +150,7 @@ export class Faker extends SimpleFaker { /** * The locale data to use for this instance. * If an array is provided, the first locale that has a definition for a given property will be used. + * Please make sure that all required locales and their parent locales are present, e.g. `[de_AT, de, en, base]`. * * @see mergeLocales(): For more information about how the locales are merged. */ |
