Skip to content

Languages

pokelance.languages ⚓︎

Languages ⚓︎

Bases: Enum

Languages that are available on Pokeapi.

Attributes:

Name Type Description
JAPANESE Language

The Japanese language.

ROOMAJI Language

The Japanese language written in roomaji.

KOREAN Language

The Korean language.

CHINESE Language

The Chinese language.

FRENCH Language

The French language.

GERMAN Language

The German language.

SPANISH Language

The Spanish language.

ITALIAN Language

The Italian language.

CZECH Language

The Czech language.

ENGLISH Language

The English language.

JA Language

The Japanese language.

CHINESE_SIMPLIFIED Language

The Chinese language written in simplified Chinese.

PORTUGAL_BRAZILIAN Language

The Portuguese language written in Brazilian Portuguese.

__int__() ⚓︎

Returns the id of the language.

Source code in pokelance/languages.py
Python
def __int__(self) -> int:
    """
    Returns the id of the language.
    """
    return int(self.value.id)

__str__() ⚓︎

Returns the name of the language.

Source code in pokelance/languages.py
Python
def __str__(self) -> str:
    """
    Returns the name of the language.
    """
    return str(self.value.name)