Skip to content

Language definitions

Language definitions

pythonxbox.api.language.XboxLiveLanguage(name, short_id, identifier, locale)

Initialize a new instance of :class:XboxLiveLanguage

Parameters:

Name Type Description Default
name str

Full name describing the language / country

required
short_id str

Short Id (e.g. "AT" for Austria)

required
identifier str

Identifier (e.g. "de_AT" for Austria)

required
locale str

Locale (e.g. "de-AT" for Austria)

required
Source code in src/pythonxbox/api/language.py
def __init__(
    self,
    name: str,
    short_id: str,
    identifier: str,
    locale: str,
) -> None:
    """
    Initialize a new instance of :class:`XboxLiveLanguage`

    Args:
        name (str): Full name describing the language / country
        short_id (str): Short Id (e.g. "AT" for Austria)
        identifier (str): Identifier (e.g. "de_AT" for Austria)
        locale (str): Locale (e.g. "de-AT" for Austria)
    """
    self.name = name
    self.short_id = short_id
    self.identifier = identifier
    self.locale = locale

name = name instance-attribute

short_id = short_id instance-attribute

identifier = identifier instance-attribute

locale = locale instance-attribute

pythonxbox.api.language.DefaultXboxLiveLanguages

Collection of locales compatible with XBL

Argentina = XboxLiveLanguage('Argentina', 'AR', 'es_AR', 'es-AR') class-attribute instance-attribute

Australia = XboxLiveLanguage('Australia', 'AU', 'en_AU', 'en-AU') class-attribute instance-attribute

Austria = XboxLiveLanguage('Austria', 'AT', 'de_AT', 'de-AT') class-attribute instance-attribute

Belgium = XboxLiveLanguage('Belgium', 'BE', 'fr_BE', 'fr-BE') class-attribute instance-attribute

Belgium_NL = XboxLiveLanguage('Belgium (NL)', 'NL', 'nl_BE', 'nl-BE') class-attribute instance-attribute

Brazil = XboxLiveLanguage('Brazil', 'BR', 'pt_BR', 'pt-BR') class-attribute instance-attribute

Canada = XboxLiveLanguage('Canada', 'CA', 'en_CA', 'en-CA') class-attribute instance-attribute

Canada_FR = XboxLiveLanguage('Canada (FR)', 'CA', 'fr_CA', 'fr-CA') class-attribute instance-attribute

Czech_Republic = XboxLiveLanguage('Czech Republic', 'CZ', 'en_CZ', 'en-CZ') class-attribute instance-attribute

Denmark = XboxLiveLanguage('Denmark', 'DK', 'da_DK', 'da-DK') class-attribute instance-attribute

Finland = XboxLiveLanguage('Finland', 'FI', 'fi_FI', 'fi-FI') class-attribute instance-attribute

France = XboxLiveLanguage('France', 'FR', 'fr_FR', 'fr-FR') class-attribute instance-attribute

Germany = XboxLiveLanguage('Germany', 'DE', 'de_DE', 'de-DE') class-attribute instance-attribute

Greece = XboxLiveLanguage('Greece', 'GR', 'en_GR', 'en-GR') class-attribute instance-attribute

Hong_Kong = XboxLiveLanguage('Hong Kong', 'HK', 'en_HK', 'en-HK') class-attribute instance-attribute

Hungary = XboxLiveLanguage('Hungary', 'HU', 'en_HU', 'en-HU') class-attribute instance-attribute

India = XboxLiveLanguage('India', 'IN', 'en_IN', 'en-IN') class-attribute instance-attribute

Great_Britain = XboxLiveLanguage('Great Britain', 'GB', 'en_GB', 'en-GB') class-attribute instance-attribute

Israel = XboxLiveLanguage('Israel', 'IL', 'en_IL', 'en-IL') class-attribute instance-attribute

Italy = XboxLiveLanguage('Italy', 'IT', 'it_IT', 'it-IT') class-attribute instance-attribute

Japan = XboxLiveLanguage('Japan', 'JP', 'ja_JP', 'ja-JP') class-attribute instance-attribute

Mexico = XboxLiveLanguage('Mexico', 'MX', 'es_MX', 'es-MX') class-attribute instance-attribute

Chile = XboxLiveLanguage('Chile', 'CL', 'es_CL', 'es-CL') class-attribute instance-attribute

Colombia = XboxLiveLanguage('Colombia', 'CO', 'es_CO', 'es-CO') class-attribute instance-attribute

Netherlands = XboxLiveLanguage('Netherlands', 'NL', 'nl_NL', 'nl-NL') class-attribute instance-attribute

New_Zealand = XboxLiveLanguage('New Zealand', 'NZ', 'en_NZ', 'en-NZ') class-attribute instance-attribute

Norway = XboxLiveLanguage('Norway', 'NO', 'nb_NO', 'nb-NO') class-attribute instance-attribute

Poland = XboxLiveLanguage('Poland', 'PL', 'pl_PL', 'pl-PL') class-attribute instance-attribute

Portugal = XboxLiveLanguage('Portugal', 'PT', 'pt_PT', 'pt-PT') class-attribute instance-attribute

Russia = XboxLiveLanguage('Russia', 'RU', 'ru_RU', 'ru-RU') class-attribute instance-attribute

Saudi_Arabia = XboxLiveLanguage('Saudi Arabia', 'SA', 'en_SA', 'en-SA') class-attribute instance-attribute

Singapore = XboxLiveLanguage('Singapore', 'SG', 'en_SG', 'en-SG') class-attribute instance-attribute

Slovakia = XboxLiveLanguage('Slovakia', 'SK', 'en_SK', 'en-SK') class-attribute instance-attribute

South_Africa = XboxLiveLanguage('South Afrida', 'ZA', 'en_ZA', 'en-ZA') class-attribute instance-attribute

Korea = XboxLiveLanguage('Korea', 'KR', 'ko_KR', 'ko-KR') class-attribute instance-attribute

Spain = XboxLiveLanguage('Spain', 'ES', 'es_ES', 'es-ES') class-attribute instance-attribute

Switzerland = XboxLiveLanguage('Switzerland', 'CH', 'de_CH', 'de-CH') class-attribute instance-attribute

Switzerland_FR = XboxLiveLanguage('Switzerland (FR)', 'CH', 'fr_CH', 'fr-CH') class-attribute instance-attribute

United_Arab_Emirates = XboxLiveLanguage('United Arab Emirates', 'AE', 'en_AE', 'en-AE') class-attribute instance-attribute

United_States = XboxLiveLanguage('United States', 'US', 'en_US', 'en-US') class-attribute instance-attribute

Ireland = XboxLiveLanguage('Ireland', 'IE', 'en_IE', 'en-IE') class-attribute instance-attribute