def load_custom_aliases(db, path):
    data = path.open(encoding='utf-8')
    for line in data:
        typ, datalang, subtag, name = line.rstrip().split(',', 3)
        db.add_name(
            table=typ,
            subtag=subtag,
            datalang=datalang,
            name=name,
            order=1000
        )
Load custom language aliases that are given in a CSV file.
dataset/ETHPy150Open LuminosoInsight/langcodes/langcodes/load_subtags.py/load_custom_aliases