doxyth/utils/langs.py
def is_valid_lang_dir(name):
    """
    Whether the directory name is a valid language code

    Args:
        name: The directory name

    Returns:
        bool
    """

    return name in valid_codes and len(name) == 2

    Whether the directory name is a valid language code

    Args:
        name: The directory name

    Returns:
        bool
    
Whether the directory name is a valid language code
Whether the directory name is a valid language code
def is_valid_lang_dir(name):
    return name in valid_codes and len(name) == 2
def is_valid_lang_dir ( name ) : return name in valid_codes and len ( name ) == 2
Whether the directory name is a valid language code
Whether the directory name is a valid language code
"""
    Whether the directory name is a valid language code

    Args:
        name: The directory name

    Returns:
        bool
    """
None
name
The directory name
The directory name