Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(i18n): 🔥 add support for bird and first name in pt-BR (brazilian portuguese) #369

Merged
merged 4 commits into from
Dec 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions packages/falso/src/lib/i18n/pt-br/bird.i18n.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"data": [
"Arara Azul",
"Arara-vermelha",
"Ararinha-azul",
"Calopsita",
"Canário",
"Beija-flor",
"Bem-te-vi",
"Coruja",
"Corrupião",
"Curió",
"Ema",
"Falcão",
"Garça",
"João-de-barro",
"Papagaio",
"Pardal",
"Periquito",
"Pomba",
"Quero-quero",
"Rolinha",
"Sabiá",
"Tucano",
"Tuiuiú",
"Urubu"
]
}
22 changes: 22 additions & 0 deletions packages/falso/src/lib/i18n/pt-br/bird.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { FakeOptions, fake } from '../../core/core';
import { data } from './bird.i18n.json';

/**
* Generate a random bird.
*
* @category animals
*
* @example
*
* randBird()
*
* @example
*
* randBird({ length: 10 })
*
*/
export function randBird<Options extends FakeOptions = never>(
options?: Options
) {
return fake(data, options);
}
Loading