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 committed 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);
}

0 comments on commit 8b158f5

Please sign in to comment.