Should the default be to import the English local specifically? #887
-
Based on https://fakerjs.dev/api/localization.html#individual-localization-packages, it seems like we're supposed to specify a locale for a smaller import. Since the default is English, should English users do the same? Something like: import faker from '@faker-js/faker/locale/en'; instead of import { faker } from '@faker-js/faker'; |
Beta Was this translation helpful? Give feedback.
Answered by
Shinigami92
Apr 28, 2022
Replies: 1 comment 3 replies
-
If you know you don't need any other locales, yes, you can do that |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
dijonkitchen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you know you don't need any other locales, yes, you can do that
But when using it just for tests, you wont recognize any impact, because you don't need to keep care of e.g. bundle size