class documentation

class Language(IntEnum): (source)

Constructor: Language.from_code(code)

View In Hierarchy

Maps engine language IDs.

Class Method from_code Get the Language enum from a two-letter code.
Constant ENGLISH Undocumented
Constant FRENCH Undocumented
Constant GERMAN Undocumented
Constant ITALIAN Undocumented
Constant POLISH Undocumented
Constant SPANISH Undocumented
Property code Get the two-letter language code.
@classmethod
def from_code(cls, code: str) -> Language: (source)

Get the Language enum from a two-letter code.

Parameters
code:strThe two-letter language code (eg. "de").
Returns
LanguageThe corresponding Language enum.
Raises
ValueErrorIf the code is unknown.
ENGLISH: int = (source)

Undocumented

Value
0
FRENCH: int = (source)

Undocumented

Value
1
GERMAN: int = (source)

Undocumented

Value
2
ITALIAN: int = (source)

Undocumented

Value
3
POLISH: int = (source)

Undocumented

Value
5
SPANISH: int = (source)

Undocumented

Value
4
@property
code: str = (source)

Get the two-letter language code.