jwlib.weblang

Note

Under construction, the API may be subject to change.

Wrapper for website language API

class jwlib.weblang.Language(data: dict)[source]
property code: str

JW language code

property isocode: str

ISO 639 language code

property name: str

Display name

property names: list[str]

List of alternative names

property rtl: bool

Right to left

property script: str

Example: ROMAN

property signed: bool

Sign language

property vernacular: str

Display name in the language itself

__init__(data: dict)
data: dict

Object data as returned by the server.

If you need access to information that has no getter method, you can get it here.

Note

Editing this directory is an untested feature.

jwlib.weblang.get_languages() list[Language][source]

Return list of available Languages