From 4c89bbdd6d814425a8be18df7b459084ea2162d8 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Wed, 14 Aug 2024 18:23:02 +0200 Subject: [PATCH] Update docs/guide/localization.md Co-authored-by: DivisionByZero --- docs/guide/localization.md | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/docs/guide/localization.md b/docs/guide/localization.md index a26264e83b2..f40a2f48a03 100644 --- a/docs/guide/localization.md +++ b/docs/guide/localization.md @@ -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. :::