pokeapi icon indicating copy to clipboard operation
pokeapi copied to clipboard

English Language index is different.

Open staticaron opened this issue 4 years ago • 3 comments

For most of the starting pokemons, the flavor_text language is English for the index 0.

pokemon-species/80/flavor_text_entries/0/flavor_text will always be in English.

But for pokemon IDs like 800, en flavor_text is at index 7.

Screenshot_2021-07-21-14-34-27-92.jpg

Screenshot_2021-07-21-14-35-18-27.jpg

If English flavor_text is always at index 0, it would not require a lengthy search to first find the the english text and then display it.

staticaron avatar Jul 21 '21 09:07 staticaron

The problem is that you are in an array. So we cannot guarantee any order.

Naramsim avatar Jul 21 '21 10:07 Naramsim

Wouldn't it be possible to change it to a map with the language as a key?

SylivanKenobi avatar Nov 28 '21 16:11 SylivanKenobi

I guess it would be possible but won't be implemented this way.

Naramsim avatar Nov 28 '21 21:11 Naramsim