Skip to content

Commit c80c035

Browse files
authored
docs: fix outdated comment regarding multiple faker locales (#2433)
1 parent 57bcd97 commit c80c035

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,6 @@ export const USERS: User[] = faker.helpers.multiple(createRandomUser, {
7979
});
8080
```
8181

82-
The above code indicates a basic usage of Faker.
83-
The point of interest is the import statements at the top.
84-
The first import indicates how one can import the entirety of Faker, which includes every locale, while the commented-out import showcases how to import only a single locale.
85-
In most situations, importing a single locale is preferable for performance because some testing frameworks reload imports for every test file, which causes startup latencies to add up quickly.
86-
Thus, limiting the import to a single locale can speed up startup times.
87-
8882
## 💎 Modules
8983

9084
An in-depth overview of the API methods is available in the documentation for [v8 (stable)](https://fakerjs.dev/api/) and [v8.\* (next)](https://next.fakerjs.dev/api/).

0 commit comments

Comments
 (0)