Skip to content

Commit

Permalink
Merge pull request #15 from henri9813/update_french
Browse files Browse the repository at this point in the history
Update french dictionnary
  • Loading branch information
jzonta authored Feb 13, 2019
2 parents 033e8b2 + eab0cf4 commit 05bed7a
Showing 1 changed file with 121 additions and 0 deletions.
121 changes: 121 additions & 0 deletions src/Provider/fr_FR/Restaurant.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,82 @@ class Restaurant extends \Faker\Provider\Base
'Eau', 'Sprite', 'Jus d\'Orange', 'Café frappé'
);

protected static $dairyNames = array(
'Beurre',
'Lait',
'Fromage',
'Mozzarella',
'Yaourt',
'Crème',
);

protected static $vegetableNames = array(
'Oignon',
'Ail',
'Tomate',
'Pomme de terre',
'Carotte',
'Poivron',
'Basil',
'Persil',
'Brocoli',
'Blé',
'Épinard',
'Champignon',
'Gingembre',
'Chilie',
'Romarin',
'Concombre',
'Cornichon',
'Avocat',
'Citrouille',
'Menthe',
'Aubergine',
'Poireau'
);

protected static $fruitNames = array(
'Citron',
'Pomme',
'Banane',
'Fraise',
'Orange',
'Ananas',
'Myrtille',
'Raisin',
'Noix de coco',
'Framboise',
'Mangue',
'Poire',
'Mûre',
'Cerise',
'Pastèque',
'Melon',
'Kiwi',
'Papaye',
'Goyave',
'Litchi'
);

protected static $meatNames = array(
'Poulet',
'Bacon',
'Saucisse',
'Boeuf',
'Jambon',
'Porc',
'Dinde',
'Paupiette',
);

protected static $sauceNames = array(
'Sauce tomate',
'Concentré de tomate',
'Mayonaise',
'Sauce barbecue',
'Ketchup'
);

/**
* A random Food Name.
* @return string
Expand All @@ -36,4 +112,49 @@ public function beverageName()
{
return static::randomElement(static::$beverageNames);
}

/**
* A random Dairy Name.
* @return string
*/
public function dairyName()
{
return static::randomElement(static::$dairyNames);
}

/**
* A random Vegetable Name.
* @return string
*/
public function vegetableName()
{
return static::randomElement(static::$vegetableNames);
}

/**
* A random Fruit Name.
* @return string
*/
public function fruitName()
{
return static::randomElement(static::$fruitNames);
}

/**
* A random Meat Name.
* @return string
*/
public function meatName()
{
return static::randomElement(static::$meatNames);
}

/**
* A random Sauce Name.
* @return string
*/
public function sauceName()
{
return static::randomElement(static::$sauceNames);
}
}

0 comments on commit 05bed7a

Please sign in to comment.