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 914e9a7
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
Original file line number Diff line number Diff line change
@@ -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", "caribou", "chat", "bovins", "guépard", "chimpanzé", "cigale", "palourde", "cafard", "morue", "coyote", "crabe", "criquet", "corbeau", "cerf", "dinosaure", "chien", "dauphin", "canard", "aigle", "anguille", "éléphant", "wapiti", "furet", "poisson", "mouche", "renard", "grenouille", "crapaud", "gerbille", "girafe", "gnou", "chèvre", "poisson rouge", "oie", "gorille", "sauterelle", "cochon d'Inde", "hamster", "lièvre", "hérisson", "hareng", "hippopotame", "frelon", "cheval", "hyène", "chacal", "méduse", "kangourou", "koala", "léopard", "lion", "lézard", "lama", "criquet", "colvert", "mammouth", "lamantin", "vison", "élan", "moustique", "souris", "rat", "mule", "loutre", "boeuf", "huître", "panda", "cochon", "ornithorynque", "porc-épic", "lapin", "raton laveur", "renne", "rhinocéros", "saumon", "sardine", "Scorpion", "lion de mer", "requin", "le mouton", "moufette", "escargot", "serpent", "araignée", "écureuil", "cygne", "termite", "tigre", "truite", "tortue", "morse", "guêpe", "belette", "baleine", "loup", "marmotte", "ver de terre", "guêpe jaune", "zèbre"]
4 changes: 4 additions & 0 deletions test/test_fr_locale.rb
Original file line number Diff line number Diff line change
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 914e9a7

Please sign in to comment.