-
-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #369 from kabrunko-dev/i18n-ptbr
feat(i18n): 🔥 add support for bird and first name in pt-BR (brazilian portuguese)
- Loading branch information
Showing
6 changed files
with
518 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
Oops, something went wrong.