Skip to content

Commit

Permalink
Merge pull request #369 from kabrunko-dev/i18n-ptbr
Browse files Browse the repository at this point in the history
feat(i18n): 🔥 add support for bird and first name in pt-BR (brazilian portuguese)
  • Loading branch information
NetanelBasal authored Dec 14, 2023
2 parents e4272b5 + e353b10 commit 8b158f5
Show file tree
Hide file tree
Showing 6 changed files with 518 additions and 5 deletions.
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

0 comments on commit 8b158f5

Please sign in to comment.