from django.conf import settings


def get_default_language():
    return settings.GARNETT_DEFAULT_TRANSLATABLE_LANGUAGE


def get_current_language():
    from .context import ctx_language
    default_lang = get_default_language()
    lang = ctx_language.get(default_lang)
    return lang


def get_languages():
    langs = settings.GARNETT_TRANSLATABLE_LANGUAGES
    if callable(langs):
        return langs()
    if type(langs) == list:
        return langs
    return []

c77e49350127c0114fcdecb0b2eb2598db991b32
<mask token>


def get_current_language():
    from .context import ctx_language
    default_lang = get_default_language()
    lang = ctx_language.get(default_lang)
    return lang


<mask token>

<mask token>


def get_default_language():
    return settings.GARNETT_DEFAULT_TRANSLATABLE_LANGUAGE


def get_current_language():
    from .context import ctx_language
    default_lang = get_default_language()
    lang = ctx_language.get(default_lang)
    return lang


<mask token>

<mask token>


def get_default_language():
    return settings.GARNETT_DEFAULT_TRANSLATABLE_LANGUAGE


def get_current_language():
    from .context import ctx_language
    default_lang = get_default_language()
    lang = ctx_language.get(default_lang)
    return lang


def get_languages():
    langs = settings.GARNETT_TRANSLATABLE_LANGUAGES
    if callable(langs):
        return langs()
    if type(langs) == list:
        return langs
    return []

from django.conf import settings


def get_default_language():
    return settings.GARNETT_DEFAULT_TRANSLATABLE_LANGUAGE


def get_current_language():
    from .context import ctx_language
    default_lang = get_default_language()
    lang = ctx_language.get(default_lang)
    return lang


def get_languages():
    langs = settings.GARNETT_TRANSLATABLE_LANGUAGES
    if callable(langs):
        return langs()
    if type(langs) == list:
        return langs
    return []
