Skip to content

Commit

Permalink
Merge branch 'next' into add-esperanto
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT authored Aug 26, 2023
2 parents 59adedc + b103c63 commit 1b82ea8
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 10 deletions.
5 changes: 4 additions & 1 deletion docs/about/team/members.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@
"name": "Matt Mayer",
"title": "Contributor",
"desc": "",
"links": [{ "icon": "github", "link": "https://github.com/matthewmayer" }]
"links": [
{ "icon": "github", "link": "https://github.com/matthewmayer" }
],
"sponsor": "https://github.com/sponsors/matthewmayer"
},
{
"avatar": "https://github.com/pkuczynski.png",
Expand Down
10 changes: 5 additions & 5 deletions docs/guide/frameworks.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import { faker } from '@faker-js/faker/locale/en';

describe('reverse array', () => {
it('should reverse the array', () => {
const title = faker.name.jobTitle();
const name = faker.name.fullName();
const title = faker.person.jobTitle();
const name = faker.person.fullName();
const animal = faker.animal.bear();

const array = [title, name, animal];
Expand All @@ -36,7 +36,7 @@ These are especially useful in tests that are meant to be deterministic, such as
- [Snapshots in Jest](https://jestjs.io/docs/snapshot-testing)

```ts
import { describe, it, expect } from 'vitest';
import { afterEach, describe, it, expect } from 'vitest';
import { faker } from '@faker-js/faker/locale/en';

// We might want other tests to *not* be seeded. This will re-seed our faker instance after each test.
Expand All @@ -48,8 +48,8 @@ describe('reverse array', () => {
it('should reverse the array', () => {
// Seed our faker instance with some static number.
faker.seed(1234);
const title = faker.name.jobTitle();
const name = faker.name.fullName();
const title = faker.person.jobTitle();
const name = faker.person.fullName();
const animal = faker.animal.bear();

const array = [title, name, animal];
Expand Down
6 changes: 3 additions & 3 deletions docs/guide/localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

Did you know Faker supports many different locales?
When using our default instance `import { faker } from '@faker-js/faker'` you get English data.
However, we also provide pre-built instances for more than 50 other locales.
However, we also provide pre-built instances for [more than 60 available locales](#available-locales).

`import { fakerDE as faker } from '@faker-js/faker'`
For example, you can import the German locale:

See below for a list of available locales.
`import { fakerDE as faker } from '@faker-js/faker'`

::: tip Note
You can also build your own Faker instances, with custom locales/overwrites.
Expand Down
12 changes: 11 additions & 1 deletion src/locales/nl/location/postcode.ts
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
export default ['#### ??'];
export default [
'1### ??',
'2### ??',
'3### ??',
'4### ??',
'5### ??',
'6### ??',
'7### ??',
'8### ??',
'9### ??',
];

0 comments on commit 1b82ea8

Please sign in to comment.