def get_non_supported(lang):
    lang = lang.lower()
    langs = dict((k.lower(), v) for k, v in
                 settings.NON_SUPPORTED_LOCALES.items())
    if lang in langs:
        if langs[lang] is None:
            return settings.LANGUAGE_CODE
        return langs[lang]
    return None
Find known non-supported locales with fallbacks.
dataset/ETHPy150Open mozilla/kitsune/kitsune/sumo/urlresolvers.py/get_non_supported