Skip to content

Commit

Permalink
Update docs/guide/localization.md
Browse files Browse the repository at this point in the history
Co-authored-by: DivisionByZero <leyla.jaehnig@gmx.de>
  • Loading branch information
ST-DDT and xDivisionByZerox authored Aug 14, 2024
1 parent 142d2ba commit 4c89bbd
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions docs/guide/localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,17 +190,6 @@ const faker = new Faker({
console.log(faker.location.country()); // 'Belgium'
```

If you want to use custom data instead, you can do it like this:

```ts{4}
import { Faker, el } from '@faker-js/faker';
const faker = new Faker({
locale: [{ location: { country: ['Ελλάδα'] } }, el],
});
console.log(faker.location.country()); // 'Ελλάδα'
```

::: tip Note
Of course, you can use [Custom Locales and Fallbacks](#custom-locales-and-fallbacks) for this as well.
:::
Expand Down

0 comments on commit 4c89bbd

Please sign in to comment.