Skip to content

Provide TypeScript support for locales #167

Description

@Shinigami92

Describe the bug

It is already possible to import locales via e.g.: import en from '@faker-js/faker/lib/locales/en'

This was also documented in the old docs and is the wanted behaviour to import additional locales.
In the old way it was just faker/locales/en. But now were we're planning to bundle cjs, esm and umd anyways, we could look if we want to provide it differential as before.

Reproduction

Go to index.ts in https://typescript-wsqtmx.stackblitz.io and see

image

Additional Info

Version: v6.0.0-alpha.3

Metadata

Metadata

Assignees

Labels

c: bugSomething isn't working

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions