def get_normalized_language(language_code):
    return language_code.split('-')[0]
Returns the actual language extracted from the given language code
dataset/ETHPy150Open zmathew/django-linguo/linguo/utils.py/get_normalized_language