From ed7b30b614284f2b0ac407f9f7bd2db9824d6a4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Wed, 2 Jun 2021 12:36:52 +0200 Subject: [PATCH] add FR translation for animals --- lib/locales/fr/animal.yml | 5 +++++ test/test_fr_locale.rb | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 lib/locales/fr/animal.yml diff --git a/lib/locales/fr/animal.yml b/lib/locales/fr/animal.yml new file mode 100644 index 0000000000..1f72c6efaf --- /dev/null +++ b/lib/locales/fr/animal.yml @@ -0,0 +1,5 @@ +fr: + faker: + creature: + animal: + name: ["alligator", "crocodile", "alpaca", "fourmi", "antilope", "singe", "tatou", "âne", "babouin", "blaireau", "chauve-souris", "ours", "castor", "abeille", "scarabée", "buffle", "papillon", "chameau", "buffles d'eau", "caribou", "chat", "bovins", "guépard", "chimpanzé", "chinchilla", "cigale", "palourde", "cafard", "morue", "coyote", "crabe", "criquet", "corbeau", "grand corbeau", "cerf", "dinosaure", "chien", "dauphin", "marsouin", "canard", "aigle", "anguille", "éléphant", "wapiti", "furet", "poisson", "mouche", "renard", "grenouille", "crapaud", "gerbille", "girafe", "moucheron", "gnou", "chèvre", "poisson rouge", "oie", "gorille", "sauterelle", "cochon d'Inde", "hamster", "lièvre", "hérisson", "hareng", "hippopotame", "frelon", "cheval", "chien de chasse", "hyène", "impala", "chacal", "méduse", "kangourou", "wallaby", "koala", "léopard", "lion", "lézard", "lama", "criquet", "pou", "ara", "colvert", "mammouth", "lamantin", "martre", "vison", "vairon", "môle", "élan", "moustique", "souris", "rat", "mule", "rat musqué", "loutre", "boeuf", "huître", "panda", "cochon", "ornithorynque", "porc-épic", "chien de prairie", "carlin", "lapin", "raton laveur", "renne", "rhinocéros", "saumon", "sardine", "Scorpion", "sceller", "lion de mer", "serval", "requin", "le mouton", "moufette", "escargot", "serpent", "araignée", "écureuil", "cygne", "termite", "tigre", "truite", "tortue", "morse", "guêpe", "belette", "baleine", "loup", "wombat", "marmotte", "ver de terre", "yack", "guêpe jaune", "zèbre"] diff --git a/test/test_fr_locale.rb b/test/test_fr_locale.rb index dbcb6341a1..f9a00712ec 100644 --- a/test/test_fr_locale.rb +++ b/test/test_fr_locale.rb @@ -125,6 +125,10 @@ def test_fr_cell_phone_format assert_match(/^0?(6|7)\d{8}$/, mobile) end + def test_fr_creature_methods + assert Faker::Creature::Animal.name.is_a? String + end + def test_fr_pokemon_methods assert Faker::Games::Pokemon.name.is_a? String assert Faker::Games::Pokemon.location.is_a? String