pokemon-rs

crates version docs build

Description

Rust library for getting Pokémon names

PRs for adding support for more translated Pokémon generations welcome

Inspired by Pokémon

Usage

```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

pokemonrs::getgeneration("Kanto", Some("en")); // => ['Bulbasaur', 'Ivysaur', 'Venusaur', ...'Mewtwo', 'Mew']

// 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")); // => プリン

pokemonrs::getgeneration("Kanto", Some("en")); // => ['フシギダネ', 'フシギソウ', 'フシギバナ', ...'ミュウツー', 'ミュウ'] ```

Supported Pokémon generations and languages

| 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 | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |

Supported languages


en: English (default language if None is given as locale)
jp: Japanese
fr: French
de: German
ru: Russian
ch: Chinese