Skip to content

Commit

Permalink
add FR translation for animals
Browse files Browse the repository at this point in the history
  • Loading branch information
cprodhomme committed Jun 4, 2021
1 parent e1bd4a5 commit ed7b30b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions 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"]
4 changes: 4 additions & 0 deletions test/test_fr_locale.rb
Expand Up @@ -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
Expand Down

0 comments on commit ed7b30b

Please sign in to comment.