from django import template

register = template.Library()

@register.filter(name='split_language')
def split_language(value):
    """Split language string and return proficiency level"""
    if ':' in value:
        parts = value.split(':', 1)  # Split only on first colon
        return parts[1].strip() if len(parts) > 1 else value
    return value
