PokeAPI / pokeapi

The Pokémon API
https://pokeapi.co
BSD 3-Clause "New" or "Revised" License
4.15k stars 935 forks source link

French Encounter Method name is returned 3 times #1093

Closed DanielSmith13 closed 4 months ago

DanielSmith13 commented 4 months ago

Steps to Reproduce:

  1. Hit this Api Endpoint: https://pokeapi.co/api/v2/encounter-method/22
  2. Response is:
    "id": 22,
    "name": "headbutt-low",
    "names": [
        {
            "language": {
                "name": "en",
                "url": "https://pokeapi.co/api/v2/language/9/"
            },
            "name": "Headbutting a low encounter rate tree"
        },
        {
            "language": {
                "name": "fr",
                "url": "https://pokeapi.co/api/v2/language/5/"
            },
            "name": "En utilisant Coup d’Boule sur un arbre à taux bas"
        },
        {
            "language": {
                "name": "fr",
                "url": "https://pokeapi.co/api/v2/language/5/"
            },
            "name": "En utilisant Coup d’Boule sur un arbre à taux normal"
        },
        {
            "language": {
                "name": "fr",
                "url": "https://pokeapi.co/api/v2/language/5/"
            },
            "name": "En utilisant Coup d’Boule sur un arbre à taux élevé"
        }
    ],
    "order": 22
}
  1. French translation is repeated 3 times

In data/v2/csv/encounter_method_prose.csv there are duplicate records

Naramsim commented 4 months ago

Could you help us and clean the file?

DanielSmith13 commented 4 months ago

Submitted a pull request https://github.com/PokeAPI/pokeapi/pull/1094 along with a fix for data/v2/csv/encounter_condition_value_prose.csv having the wrong value set for Arceus in party