Rust library for getting Pokémon names
PRs for adding support for more translated Pokémon generations welcome
Inspired by Pokémon
```rust use pokemon_rs;
pokemonrs::getall(None); // => ['Bulbasaur', 'Ivysaur', 'Venusaur', ...]
pokemonrs::getby_id(33, None); // => Nidorino
pokemonrs::getidbyname("Pikachu", None); // => 25
pokemon_rs::random(None); // => Raichu
// There is support for another language than default (None mapped to en) that can be given, like Some("jp")
):
pokemonrs::getall(Some("jp"));
// => ['フシギダネ', 'フシギソウ', 'フシギバナ', ...]
pokemonrs::getby_id(33, Some("jp")); // => ニドリーノ
pokemonrs::getidbyname("フシギダネ", Some("jp")) // => 1
pokemon_rs::random(Some("jp")); // => プリン ```
| Generation | Region | EN(default) | CH | DE | FR | JP | RU | | --- | --- | --- | --- | --- | --- | --- | --- | | 1 | Kanto | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | 2 | Johto | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | 3 | Hoenn | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | 4 | Sinnoh | ✅ | ❌ | ❌ | ❌ | ✅ | ❌ | | 5 | Unova | ✅ | ❌ | ❌ | ❌ | ✅ | ❌ | | 6 | Kalos | ✅ | ❌ | ❌ | ❌ | ✅ | ❌ | | 7 | Alola | ✅ | ❌ | ❌ | ❌ | ✅ | ❌ | | 8 | Galar | ✅ | ❌ | ❌ | ❌ | ✅ | ❌ | | 9 | TBA | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
en
: English (default language if None is given as locale
)
jp
: Japanese
fr
: French
de
: German
ru
: Russian
ch
: Chinese