diff options
| author | Matt Mayer <[email protected]> | 2024-04-05 21:47:54 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-04-05 16:47:54 +0200 |
| commit | f47dfe5c58371b468c704cab7a7cd29f9a3e3379 (patch) | |
| tree | 8f7feb0a3d1882d4d134b79686bb4fcd756acba7 /src | |
| parent | 5860783e81d392bc235408b697668ab8ecdd2d7c (diff) | |
| download | faker-f47dfe5c58371b468c704cab7a7cd29f9a3e3379.tar.xz faker-f47dfe5c58371b468c704cab7a7cd29f9a3e3379.zip | |
feat(animal): add more simple animals to animal.type() (#2786)
Diffstat (limited to 'src')
| -rw-r--r-- | src/locales/en/animal/type.ts | 49 | ||||
| -rw-r--r-- | src/modules/animal/index.ts | 2 |
2 files changed, 41 insertions, 10 deletions
diff --git a/src/locales/en/animal/type.ts b/src/locales/en/animal/type.ts index b1869f2e..efaca735 100644 --- a/src/locales/en/animal/type.ts +++ b/src/locales/en/animal/type.ts @@ -1,15 +1,46 @@ export default [ - 'dog', - 'cat', - 'snake', + 'bat', 'bear', - 'lion', - 'cetacean', - 'insect', - 'crocodilia', - 'cow', + 'bee', 'bird', + 'butterfly', + 'cat', + 'cow', + 'crocodile', + 'deer', + 'dog', + 'dolphin', + 'eagle', + 'elephant', 'fish', - 'rabbit', + 'flamingo', + 'fox', + 'frog', + 'gecko', + 'giraffe', + 'gorilla', + 'hamster', + 'hippopotamus', 'horse', + 'kangaroo', + 'koala', + 'lion', + 'monkey', + 'ostrich', + 'panda', + 'parrot', + 'peacock', + 'penguin', + 'polar bear', + 'rabbit', + 'rhinoceros', + 'sea lion', + 'shark', + 'snake', + 'squirrel', + 'tiger', + 'turtle', + 'whale', + 'wolf', + 'zebra', ]; diff --git a/src/modules/animal/index.ts b/src/modules/animal/index.ts index 7e5a51da..5a885bbd 100644 --- a/src/modules/animal/index.ts +++ b/src/modules/animal/index.ts @@ -194,7 +194,7 @@ export class AnimalModule extends ModuleBase { * Returns a random animal type. * * @example - * faker.animal.type() // 'crocodilia' + * faker.animal.type() // 'crocodile' * * @since 5.5.0 */ |
